From 9c3bd7f43598a42959fa979e6a6908311e4751bc Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Sun, 27 Jan 2013 19:56:54 +0200 Subject: [PATCH] another path-related regression in ecmasgen --- compiler/ecmasgen.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/compiler/ecmasgen.nim b/compiler/ecmasgen.nim index 4bad35a82c..30b1ac8f05 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 =