Skip to content

Commit

Permalink
test: switch to object spread in common/benchmark.js
Browse files Browse the repository at this point in the history
PR-URL: #30309
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
palmires authored and addaleax committed Nov 30, 2019
1 parent f7ca7e6 commit f8dfa2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function runBenchmark(name, args, env) {

argv.push(name);

const mergedEnv = Object.assign({}, process.env, env);
const mergedEnv = { ...process.env, ...env };

const child = fork(runjs, argv, {
env: mergedEnv,
Expand Down

0 comments on commit f8dfa2d

Please sign in to comment.