js: fix strconv build, BigInt infix fix (#11464)

pull/11467/head
playX 2021-09-11 00:11:36 +03:00 committed by GitHub
parent 36fedd28b9
commit 07bd61582c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1 +0,0 @@
module atoi

View File

@ -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)