Skip to content

Commit

Permalink
test: use spread instead of Object.assign
Browse files Browse the repository at this point in the history
PR-URL: #30419
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
  • Loading branch information
dnlup authored and MylesBorins committed Dec 17, 2019
1 parent 96c0615 commit d708887
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/benchmark/test-benchmark-dns.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ require('../common');

const runBenchmark = require('../common/benchmark');

const env = Object.assign({}, process.env,
{ NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
const env = { ...process.env, NODEJS_BENCHMARK_ZERO_ALLOWED: 1 };

runBenchmark('dns', ['n=1', 'all=false', 'name=127.0.0.1'], env);

0 comments on commit d708887

Please sign in to comment.