summary refs log tree commit diff stats
path: root/compiler
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2013-01-27 19:56:54 +0200
committerZahary Karadjov <zahary@gmail.com>2013-01-27 19:56:54 +0200
commit9c3bd7f43598a42959fa979e6a6908311e4751bc (patch)
tree4287885d3232f33740955c66f5fced4433a2235a /compiler
parent0d77909b1711d0e2fa4b1bc2be0ddce2e50ee487 (diff)
downloadNim-9c3bd7f43598a42959fa979e6a6908311e4751bc.tar.gz
another path-related regression in ecmasgen
Diffstat (limited to 'compiler')
-rwxr-xr-xcompiler/ecmasgen.nim3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/ecmasgen.nim b/compiler/ecmasgen.nim
index 4bad35a82..30b1ac8f0 100755
--- a/compiler/ecmasgen.nim
+++ b/compiler/ecmasgen.nim
@@ -21,7 +21,6 @@ import
 
 type 
   TEcmasGen = object of TPassContext
-    filename: string
     module: PSym
 
   BModule = ref TEcmasGen
@@ -1608,7 +1607,7 @@ proc myClose(b: PPassContext, n: PNode): PNode =
 
     # write the file:
     var code = con(globals.typeInfo, globals.code)
-    var outfile = changeFileExt(completeCFilePath(m.filename), "js")
+    var outfile = changeFileExt(completeCFilePath(m.module.filename), "js")
     discard writeRopeIfNotEqual(con(genHeader(), code), outfile)
 
 proc myOpenCached(s: PSym, rd: PRodReader): PPassContext =