Skip to content

Commit 2050f58

Browse files
author
Antonio Scandurra
committed
Don't override process.env variables
1 parent 15d988d commit 2050f58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/lib/generate-startup-snapshot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = function (packagedAppPath) {
8888
childProcess.execFileSync(
8989
nodeBundledInElectronPath,
9090
[verifySnapshotScriptPath, snapshotScriptPath],
91-
{env: Object.assign(process.env, {ELECTRON_RUN_AS_NODE: 1})}
91+
{env: Object.assign({}, process.env, {ELECTRON_RUN_AS_NODE: 1})}
9292
)
9393

9494
const generatedStartupBlobPath = path.join(CONFIG.buildOutputPath, 'snapshot_blob.bin')

0 commit comments

Comments
 (0)