Merge pull request #12028 from Floobits/node_env_fix

Don't erase NODE_ENV from environment.
This commit is contained in:
Lee Dohm
2016-06-30 16:47:37 -07:00
committed by GitHub

View File

@@ -72,7 +72,10 @@ function needsPatching (options = { platform: process.platform, env: process.env
// underlying functionality.
function clone (to, from) {
for (var key in to) {
delete to[key]
// Don't erase NODE_ENV. Fixes #12024
if (key !== 'NODE_ENV') {
delete to[key]
}
}
Object.assign(to, from)