Skip to content
Permalink
Browse files

fixup! fixup! worker: use copy of process.env

  • Loading branch information...
addaleax committed Mar 10, 2019
1 parent e0cf298 commit b9360a3b9484b41af7522997054d9cec55146bb3
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/internal/main/worker_thread.js
@@ -189,11 +189,11 @@ function makeEnvProxy(env) {
},

defineProperty(target, key, descriptor) {
return handler.set(target, key, typeof descriptor.get === 'undefined' ?
descriptor.value :
descriptor.get.call(ret));
return handler.set(
target, key, typeof descriptor.get === 'undefined' ?
descriptor.value : descriptor.get.call(ret));
}
}
};

ret = new Proxy(env, handler);
return ret;

0 comments on commit b9360a3

Please sign in to comment.
You can’t perform that action at this time.