another path-related regression in ecmasgen
This commit is contained in:
parent
0d77909b17
commit
9c3bd7f435
1 changed files with 1 additions and 2 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue