Skip to content

Commit 7d108aa

Browse files
committed
cleanup #559
1 parent b6bce03 commit 7d108aa

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/fork.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ var send = require('./send');
1010
var env = process.env;
1111

1212
// ensure NODE_PATH paths are absolute
13-
if (process.env.NODE_PATH) {
14-
var nodePath = process.env.NODE_PATH
13+
if (env.NODE_PATH) {
14+
env = objectAssign({}, env);
15+
16+
env.NODE_PATH = env.NODE_PATH
1517
.split(path.delimiter)
16-
.map(function (p) {
17-
return path.resolve(p);
18+
.map(function (x) {
19+
return path.resolve(x);
1820
})
1921
.join(path.delimiter);
20-
21-
env = objectAssign(env, {NODE_PATH: nodePath});
2222
}
2323

2424
module.exports = function (file, opts) {

0 commit comments

Comments
 (0)