make JS tests green again
This commit is contained in:
parent
a5e4d2f7a3
commit
8decf0f5ce
2 changed files with 2 additions and 2 deletions
|
|
@ -2252,7 +2252,7 @@ proc gen(p: PProc, n: PNode, r: var TCompRes) =
|
|||
case n.kind
|
||||
of nkSym:
|
||||
genSym(p, n, r)
|
||||
of nkCharLit..nkUInt32Lit:
|
||||
of nkCharLit..nkUInt64Lit:
|
||||
if n.typ.kind == tyBool:
|
||||
r.res = if n.intVal == 0: rope"false" else: rope"true"
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue