fixes a critical JS codegen bug which caused 'importcpp' statements not to be emitted

This commit is contained in:
Andreas Rumpf
2016-07-11 23:15:37 +02:00
parent c9ce38e56d
commit bcb2365dec

View File

@@ -1223,6 +1223,7 @@ proc genPatternCall(p: PProc; n: PNode; pat: string; typ: PType;
r: var TCompRes) =
var i = 0
var j = 1
r.kind = resExpr
while i < pat.len:
case pat[i]
of '@':