Merge pull request #2829 from yglukhov/js-asm-renderer

Fixed renderer for asm node in JS
This commit is contained in:
Andreas Rumpf
2015-05-28 14:26:55 +02:00

View File

@@ -767,7 +767,8 @@ proc gasm(g: var TSrcGen, n: PNode) =
putWithSpace(g, tkAsm, "asm")
gsub(g, n.sons[0])
gcoms(g)
gsub(g, n.sons[1])
if n.sons.len > 1:
gsub(g, n.sons[1])
proc gident(g: var TSrcGen, n: PNode) =
if g.checkAnon and n.kind == nkSym and sfAnon in n.sym.flags: return