@@ -135,7 +135,7 @@ function createTestFileList() {
135
135
for ( let i = 0 ; i < testPaths . length ; i ++ ) {
136
136
const absolutePath = resolve ( testPaths [ i ] ) ;
137
137
138
- processPath ( absolutePath , testFiles , { userSupplied : true } ) ;
138
+ processPath ( absolutePath , testFiles , { __proto__ : null , userSupplied : true } ) ;
139
139
}
140
140
} catch ( err ) {
141
141
if ( err ?. code === 'ENOENT' ) {
@@ -348,9 +348,9 @@ class FileTest extends Test {
348
348
function runTestFile ( path , root , inspectPort , filesWatcher , testNamePatterns ) {
349
349
const watchMode = filesWatcher != null ;
350
350
const subtest = root . createSubtest ( FileTest , path , async ( t ) => {
351
- const args = getRunArgs ( { path, inspectPort, testNamePatterns } ) ;
351
+ const args = getRunArgs ( { __proto__ : null , path, inspectPort, testNamePatterns } ) ;
352
352
const stdio = [ 'pipe' , 'pipe' , 'pipe' ] ;
353
- const env = { ...process . env , NODE_TEST_CONTEXT : 'child-v8' } ;
353
+ const env = { __proto__ : null , ...process . env , NODE_TEST_CONTEXT : 'child-v8' } ;
354
354
if ( watchMode ) {
355
355
stdio . push ( 'ipc' ) ;
356
356
env . WATCH_REPORT_DEPENDENCIES = '1' ;
@@ -359,7 +359,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
359
359
env . FORCE_COLOR = '1' ;
360
360
}
361
361
362
- const child = spawn ( process . execPath , args , { signal : t . signal , encoding : 'utf8' , env, stdio } ) ;
362
+ const child = spawn ( process . execPath , args , { __proto__ : null , signal : t . signal , encoding : 'utf8' , env, stdio } ) ;
363
363
if ( watchMode ) {
364
364
filesWatcher . runningProcesses . set ( path , child ) ;
365
365
filesWatcher . watcher . watchChildProcessModules ( child , path ) ;
@@ -376,7 +376,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
376
376
subtest . parseMessage ( data ) ;
377
377
} ) ;
378
378
379
- const rl = createInterface ( { input : child . stderr } ) ;
379
+ const rl = createInterface ( { __proto__ : null , input : child . stderr } ) ;
380
380
rl . on ( 'line' , ( line ) => {
381
381
if ( isInspectorMessage ( line ) ) {
382
382
process . stderr . write ( line + '\n' ) ;
@@ -394,8 +394,8 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
394
394
} ) ;
395
395
396
396
const { 0 : { 0 : code , 1 : signal } } = await SafePromiseAll ( [
397
- once ( child , 'exit' , { signal : t . signal } ) ,
398
- finished ( child . stdout , { signal : t . signal } ) ,
397
+ once ( child , 'exit' , { __proto__ : null , signal : t . signal } ) ,
398
+ finished ( child . stdout , { __proto__ : null , signal : t . signal } ) ,
399
399
] ) ;
400
400
401
401
if ( watchMode ) {
@@ -428,7 +428,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
428
428
function watchFiles ( testFiles , root , inspectPort , signal , testNamePatterns ) {
429
429
const runningProcesses = new SafeMap ( ) ;
430
430
const runningSubtests = new SafeMap ( ) ;
431
- const watcher = new FilesWatcher ( { debounce : 200 , mode : 'filter' , signal } ) ;
431
+ const watcher = new FilesWatcher ( { __proto__ : null , debounce : 200 , mode : 'filter' , signal } ) ;
432
432
const filesWatcher = { __proto__ : null , watcher, runningProcesses, runningSubtests } ;
433
433
434
434
watcher . on ( 'changed' , ( { owners } ) => {
@@ -513,7 +513,7 @@ function run(options) {
513
513
} ) ;
514
514
}
515
515
516
- const root = createTestTree ( { concurrency, timeout, signal } ) ;
516
+ const root = createTestTree ( { __proto__ : null , concurrency, timeout, signal } ) ;
517
517
let testFiles = files ?? createTestFileList ( ) ;
518
518
519
519
if ( shard ) {
0 commit comments