more accurate effects for times.nim; bugfix for the JS codegen

This commit is contained in:
Araq 2013-05-31 12:20:55 +02:00
commit 2ec3e6b49e
2 changed files with 54 additions and 52 deletions

View file

@ -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