summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-08 23:03:11 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-08 23:03:11 +0200
commitba273057e31775dfacbd64719641cec7f3b95891 (patch)
tree25b027f4fe934de91d313356bbefca7bef69df48 /compiler
parente2267ef5c95e400e20ac48bea9c662241bc01f18 (diff)
downloadNim-ba273057e31775dfacbd64719641cec7f3b95891.tar.gz
Fixes a critical JS codegen bug about @ in call pattern
Diffstat (limited to 'compiler')
-rw-r--r--compiler/jsgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 0b62b8480..09eafe128 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -1215,6 +1215,7 @@ proc genOtherArg(p: PProc; n: PNode; i: int; typ: PType;
     genArgNoParam(p, it, r)
   else:
     genArg(p, it, paramType.sym, r)
+  inc generated
 
 proc genPatternCall(p: PProc; n: PNode; pat: string; typ: PType;
                     r: var TCompRes) =