Fixed the tester. Some fixes and additions for the JS backend.
This commit is contained in:
parent
15fcb58e2a
commit
e1a82987af
4 changed files with 14 additions and 13 deletions
|
|
@ -1141,7 +1141,7 @@ proc genMagic(p: var TProc, n: PNode, r: var TCompRes) =
|
|||
[filen, line, mergeExpr(a)])
|
||||
of mNew, mNewFinalize: genNew(p, n, r)
|
||||
of mSizeOf: r.res = toRope(getSize(n.sons[1].typ))
|
||||
of mChr: gen(p, n.sons[1], r) # nothing to do
|
||||
of mChr, mArrToSeq: gen(p, n.sons[1], r) # nothing to do
|
||||
of mOrd: genOrd(p, n, r)
|
||||
of mLengthStr: unaryExpr(p, n, r, "", "($1.length-1)")
|
||||
of mLengthSeq, mLengthOpenArray, mLengthArray:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue