@@ -304,9 +304,9 @@ class FileTest extends Test {
304
304
function runTestFile ( path , root , inspectPort , filesWatcher , testNamePatterns ) {
305
305
const watchMode = filesWatcher != null ;
306
306
const subtest = root . createSubtest ( FileTest , path , async ( t ) => {
307
- const args = getRunArgs ( { path, inspectPort, testNamePatterns } ) ;
307
+ const args = getRunArgs ( { __proto__ : null , path, inspectPort, testNamePatterns } ) ;
308
308
const stdio = [ 'pipe' , 'pipe' , 'pipe' ] ;
309
- const env = { ...process . env , NODE_TEST_CONTEXT : 'child-v8' } ;
309
+ const env = { __proto__ : null , ...process . env , NODE_TEST_CONTEXT : 'child-v8' } ;
310
310
if ( watchMode ) {
311
311
stdio . push ( 'ipc' ) ;
312
312
env . WATCH_REPORT_DEPENDENCIES = '1' ;
@@ -315,7 +315,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
315
315
env . FORCE_COLOR = '1' ;
316
316
}
317
317
318
- const child = spawn ( process . execPath , args , { signal : t . signal , encoding : 'utf8' , env, stdio } ) ;
318
+ const child = spawn ( process . execPath , args , { __proto__ : null , signal : t . signal , encoding : 'utf8' , env, stdio } ) ;
319
319
if ( watchMode ) {
320
320
filesWatcher . runningProcesses . set ( path , child ) ;
321
321
filesWatcher . watcher . watchChildProcessModules ( child , path ) ;
@@ -332,7 +332,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
332
332
subtest . parseMessage ( data ) ;
333
333
} ) ;
334
334
335
- const rl = createInterface ( { input : child . stderr } ) ;
335
+ const rl = createInterface ( { __proto__ : null , input : child . stderr } ) ;
336
336
rl . on ( 'line' , ( line ) => {
337
337
if ( isInspectorMessage ( line ) ) {
338
338
process . stderr . write ( line + '\n' ) ;
@@ -350,8 +350,8 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
350
350
} ) ;
351
351
352
352
const { 0 : { 0 : code , 1 : signal } } = await SafePromiseAll ( [
353
- once ( child , 'exit' , { signal : t . signal } ) ,
354
- finished ( child . stdout , { signal : t . signal } ) ,
353
+ once ( child , 'exit' , { __proto__ : null , signal : t . signal } ) ,
354
+ finished ( child . stdout , { __proto__ : null , signal : t . signal } ) ,
355
355
] ) ;
356
356
357
357
if ( watchMode ) {
@@ -384,7 +384,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
384
384
function watchFiles ( testFiles , root , inspectPort , signal , testNamePatterns ) {
385
385
const runningProcesses = new SafeMap ( ) ;
386
386
const runningSubtests = new SafeMap ( ) ;
387
- const watcher = new FilesWatcher ( { debounce : 200 , mode : 'filter' , signal } ) ;
387
+ const watcher = new FilesWatcher ( { __proto__ : null , debounce : 200 , mode : 'filter' , signal } ) ;
388
388
const filesWatcher = { __proto__ : null , watcher, runningProcesses, runningSubtests } ;
389
389
390
390
watcher . on ( 'changed' , ( { owners } ) => {
@@ -469,7 +469,7 @@ function run(options) {
469
469
} ) ;
470
470
}
471
471
472
- const root = createTestTree ( { concurrency, timeout, signal } ) ;
472
+ const root = createTestTree ( { __proto__ : null , concurrency, timeout, signal } ) ;
473
473
let testFiles = files ?? createTestFileList ( ) ;
474
474
475
475
if ( shard ) {
0 commit comments