mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: fix strconv build, BigInt infix fix (#11464)
This commit is contained in:
parent
36fedd28b9
commit
07bd61582c
@ -1 +0,0 @@
|
||||
module atoi
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user