diff options
author | Michael Jendrusch <Jendrusch@stud.uni-heidelberg.de> | 2017-01-29 17:34:08 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-01-29 17:34:08 +0100 |
commit | d75760f5d3817ab8593a52be3d84ec74cc697cab (patch) | |
tree | 70e193b635d01df2247482b9c16452efcfd01fd2 /compiler | |
parent | 5e1bdb4d83fdf942c5224280d6c100181f600181 (diff) | |
download | Nim-d75760f5d3817ab8593a52be3d84ec74cc697cab.tar.gz |
made nodecl implicit for vars in the js backend. (#5297)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/jsgen.nim | 2 |
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]) |