diff options
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]) |