| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7e7a816 commit 9dab32f
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -64,7 +64,7 @@ const expectedEnv = { foo: 'bar' }; | |||
| 64 | 64 | ||
| 65 | 65 | argsLists.forEach((args) => { | |
| 66 | 66 | const cp = fork(fixtures.path('child-process-echo-options.js'), args, { | |
| 67 | - env: Object.assign({}, process.env, expectedEnv) | ||
| 67 | + env: { ...process.env, ...expectedEnv } | ||
| 68 | 68 | }); | |
| 69 | 69 | ||
| 70 | 70 | cp.on( | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -51,7 +51,7 @@ assert.strictEqual(fs.existsSync(copyPath), false); | |||
| 51 | 51 | fs.copyFileSync(nodePath, copyPath, fs.constants.COPYFILE_FICLONE); | |
| 52 | 52 | fs.chmodSync(copyPath, '0755'); | |
| 53 | 53 | ||
| 54 | - const envCopy = Object.assign({}, process.env, { 'FORK': 'true' }); | ||
| 54 | + const envCopy = { ...process.env, FORK: 'true' }; | ||
| 55 | 55 | const child = fork(__filename, { execPath: copyPath, env: envCopy }); | |
| 56 | 56 | child.on('message', common.mustCall(function(recv) { | |
| 57 | 57 | assert.deepStrictEqual(recv, msg); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments