Skip to content

Commit

Permalink
test_runner: avoid spread operation
Browse files Browse the repository at this point in the history
  • Loading branch information
pmarchini committed Sep 24, 2024
1 parent e97c082 commit 2f4389c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/internal/test_runner/harness.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2f4389c

Please sign in to comment.