summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2016-07-11 23:15:37 +0200
committerAndreas Rumpf <rumpf_a@web.de>2016-07-11 23:19:24 +0200
commitbcb2365decb4fce8bd0be9e8e7a855a86fbcc202 (patch)
treec48918fbfcda633075c1da55f8a1283dbffd68cc
parentc9ce38e56dba0f0c37a4193311e1120ba2d12c0e (diff)
downloadNim-bcb2365decb4fce8bd0be9e8e7a855a86fbcc202.tar.gz
fixes a critical JS codegen bug which caused 'importcpp' statements not to be emitted
-rw-r--r--compiler/jsgen.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 0ac779822..be529072c 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -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 '@':