fixes a critical JS codegen bug which caused 'importcpp' statements not to be emitted
This commit is contained in:
parent
c9ce38e56d
commit
bcb2365dec
1 changed files with 1 additions and 0 deletions
|
|
@ -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 '@':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue