summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorMichael Jendrusch <Jendrusch@stud.uni-heidelberg.de>2017-01-29 17:34:08 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-01-29 17:34:08 +0100
commitd75760f5d3817ab8593a52be3d84ec74cc697cab (patch)
tree70e193b635d01df2247482b9c16452efcfd01fd2 /compiler
parent5e1bdb4d83fdf942c5224280d6c100181f600181 (diff)
downloadNim-d75760f5d3817ab8593a52be3d84ec74cc697cab.tar.gz
made nodecl implicit for vars in the js backend. (#5297)
Diffstat (limited to 'compiler')
-rw-r--r--compiler/jsgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index 34d78ea7c..29a72c86e 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -1528,7 +1528,7 @@ proc genVarStmt(p: PProc, n: PNode) =
         assert(a.kind == nkIdentDefs)
         assert(a.sons[0].kind == nkSym)
         var v = a.sons[0].sym
-        if lfNoDecl notin v.loc.flags:
+        if lfNoDecl notin v.loc.flags and sfImportc notin v.flags:
           genLineDir(p, a)
           genVarInit(p, v, a.sons[2])