mirror of
https://github.com/nim-lang/Nim.git
synced 2026-09-01 19:33:42 +00:00
more accurate effects for times.nim; bugfix for the JS codegen
This commit is contained in:
@@ -1027,7 +1027,7 @@ proc genConstant(p: PProc, c: PSym) =
|
||||
if lfNoDecl notin c.loc.flags and not p.g.generatedSyms.containsOrIncl(c.id):
|
||||
let oldBody = p.body
|
||||
p.body = nil
|
||||
genLineDir(p, c.ast)
|
||||
#genLineDir(p, c.ast)
|
||||
genVarInit(p, c, c.ast)
|
||||
app(p.g.code, p.body)
|
||||
p.body = oldBody
|
||||
|
||||
Reference in New Issue
Block a user