From 2f4389c8887e5c7c34e7abac46b0b9b55fb1bd86 Mon Sep 17 00:00:00 2001 From: Pietro Marchini Date: Tue, 24 Sep 2024 10:02:18 +0200 Subject: [PATCH] test_runner: avoid spread operation --- lib/internal/test_runner/harness.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/internal/test_runner/harness.js b/lib/internal/test_runner/harness.js index 150d11733ad4e8..9109495fef03f3 100644 --- a/lib/internal/test_runner/harness.js +++ b/lib/internal/test_runner/harness.js @@ -259,11 +259,8 @@ function lazyBootstrapRoot() { entryFile, loc: entryFile ? [1, 1, entryFile] : undefined, }; - const globalOptions = { - __proto__: null, - ...parseCommandLine(), - cwd: process.cwd(), - }; + const globalOptions = parseCommandLine(); + globalOptions.cwd = process.cwd(); createTestTree(rootTestOptions, globalOptions); globalRoot.reporter.on('test:summary', (data) => { if (!data.success) {