Skip to content

Commit

Permalink
test: use spread instead of Object.assign
Browse files Browse the repository at this point in the history
  • Loading branch information
dnlup committed Nov 12, 2019
1 parent cc6f99d commit db175d5
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 db175d5

Please sign in to comment.