From 07bd61582c7182934ecf66b3b2057c35598e6cf7 Mon Sep 17 00:00:00 2001 From: playX Date: Sat, 11 Sep 2021 00:11:36 +0300 Subject: [PATCH] js: fix strconv build, BigInt infix fix (#11464) --- vlib/strconv/atoi.js.v | 1 - vlib/v/gen/js/infix.v | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) delete mode 100644 vlib/strconv/atoi.js.v diff --git a/vlib/strconv/atoi.js.v b/vlib/strconv/atoi.js.v deleted file mode 100644 index 8c0de8ea4b..0000000000 --- a/vlib/strconv/atoi.js.v +++ /dev/null @@ -1 +0,0 @@ -module atoi diff --git a/vlib/v/gen/js/infix.v b/vlib/v/gen/js/infix.v index c6f6d094be..a0252d520e 100644 --- a/vlib/v/gen/js/infix.v +++ b/vlib/v/gen/js/infix.v @@ -14,12 +14,12 @@ fn (mut g JsGen) gen_plain_infix_expr(node ast.InfixExpr) { g.write('BigInt(') g.expr(node.left) g.gen_deref_ptr(node.left_type) - g.write('.valueOf())') + g.write('.val)') g.write(' $node.op.str() ') g.write('BigInt(') g.expr(node.right) g.gen_deref_ptr(node.left_type) - g.write('.valueOf())') + g.write('.val)') } else { g.expr(node.left) g.gen_deref_ptr(node.left_type)