summary refs log tree commit diff stats
path: root/compiler/jsgen.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-05-31 12:20:55 +0200
committerAraq <rumpf_a@web.de>2013-05-31 12:20:55 +0200
commit2ec3e6b49ecd65dce42a0332af9b4e816d87afcd (patch)
tree3a61fb15dad03f03c1c6b2a02429491f90ec03ba /compiler/jsgen.nim
parentddedefd4c44133f30cd19860ff2acb9259b3d88f (diff)
downloadNim-2ec3e6b49ecd65dce42a0332af9b4e816d87afcd.tar.gz
more accurate effects for times.nim; bugfix for the JS codegen
Diffstat (limited to 'compiler/jsgen.nim')
-rw-r--r--compiler/jsgen.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim
index a76f8a883..e99c71cb8 100644
--- a/compiler/jsgen.nim
+++ b/compiler/jsgen.nim
@@ -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