1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Preserve environment when calling coffee from test (#5191)

This change spawns `coffee` with a new path, but without removing all other
environment variables.  This is useful for preserving environment needed by
Node, for example, `LD_LIBRARY_PATH` on Unix.  In particular, fix #5179.
This commit is contained in:
Erik Demaine 2019-04-02 14:35:22 -04:00 committed by Geoffrey Booth
parent e6f6aa8c85
commit d23919c430

View file

@ -11,7 +11,7 @@ coffeeCommand = if isWindows() then 'node coffee' else 'coffee'
spawnOptions =
cwd: coffeeBinFolder
encoding: 'utf8'
env:
env: Object.assign {}, process.env,
PATH: coffeeBinFolder + (if isWindows() then ';' else ':') + process.env.PATH
shell: isWindows()