mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
made nodecl implicit for vars in the js backend. (#5297)
This commit is contained in:
committed by
Andreas Rumpf
parent
5e1bdb4d83
commit
d75760f5d3
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user