Skip to content
Prev Previous commit
Next Next commit
test: replace Object.assign with object spread
Replaces Object.assign with spread where object is simply cloned
  • Loading branch information
Grigoriy Levanov committed Nov 6, 2019
commit bd7b1c11428710dceed12bb516f1d0b1c737c8da
4 changes: 2 additions & 2 deletions test/parallel/test-trace-events-async-hooks-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ const proc = cp.spawnSync(
[ '--trace-event-categories', 'node.async_hooks', '-e', worker ],
{
cwd: tmpdir.path,
env: Object.assign({}, process.env, {
env: { ...process.env, ...{
'NODE_DEBUG_NATIVE': 'tracing',
'NODE_DEBUG': 'tracing'
})
} }
});

console.log('process exit with signal:', proc.signal);
Expand Down