Fixed isNil codegen in JS
This commit is contained in:
parent
732479b797
commit
8dbe9ea3ab
1 changed files with 1 additions and 1 deletions
|
|
@ -1324,7 +1324,7 @@ proc genMagic(p: PProc, n: PNode, r: var TCompRes) =
|
|||
of mEqStr: binaryExpr(p, n, r, "eqStrings", "eqStrings($1, $2)")
|
||||
of mLeStr: binaryExpr(p, n, r, "cmpStrings", "(cmpStrings($1, $2) <= 0)")
|
||||
of mLtStr: binaryExpr(p, n, r, "cmpStrings", "(cmpStrings($1, $2) < 0)")
|
||||
of mIsNil: unaryExpr(p, n, r, "", "$1 == null")
|
||||
of mIsNil: unaryExpr(p, n, r, "", "($1 === null)")
|
||||
of mEnumToStr: genRepr(p, n, r)
|
||||
of mNew, mNewFinalize: genNew(p, n)
|
||||
of mSizeOf: r.res = rope(getSize(n.sons[1].typ))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue