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) {