From 0ee4c3bad728da5ffa4b3121a99a99fc0b0fd73f Mon Sep 17 00:00:00 2001 From: palmires Date: Wed, 6 Nov 2019 16:18:06 +0200 Subject: [PATCH] test: switch to object spread in common/benchmark.js --- test/common/benchmark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/benchmark.js b/test/common/benchmark.js index bb182fc6887636..f630bb9d0e6fd8 100644 --- a/test/common/benchmark.js +++ b/test/common/benchmark.js @@ -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,