another path-related regression in ecmasgen

This commit is contained in:
Zahary Karadjov 2013-01-27 19:56:54 +02:00
commit 9c3bd7f435

View file

@ -21,7 +21,6 @@ import
type type
TEcmasGen = object of TPassContext TEcmasGen = object of TPassContext
filename: string
module: PSym module: PSym
BModule = ref TEcmasGen BModule = ref TEcmasGen
@ -1608,7 +1607,7 @@ proc myClose(b: PPassContext, n: PNode): PNode =
# write the file: # write the file:
var code = con(globals.typeInfo, globals.code) 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) discard writeRopeIfNotEqual(con(genHeader(), code), outfile)
proc myOpenCached(s: PSym, rd: PRodReader): PPassContext = proc myOpenCached(s: PSym, rd: PRodReader): PPassContext =