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 <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
palmires authored and MylesBorins committed Dec 17, 2019
1 parent bccef49 commit 984c406
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 984c406

Please sign in to comment.