@@ -304,9 +304,9 @@ class FileTest extends Test {
304304function runTestFile ( path , root , inspectPort , filesWatcher , testNamePatterns ) {
305305 const watchMode = filesWatcher != null ;
306306 const subtest = root . createSubtest ( FileTest , path , async ( t ) => {
307- const args = getRunArgs ( { path, inspectPort, testNamePatterns } ) ;
307+ const args = getRunArgs ( { __proto__ : null , path, inspectPort, testNamePatterns } ) ;
308308 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' } ;
310310 if ( watchMode ) {
311311 stdio . push ( 'ipc' ) ;
312312 env . WATCH_REPORT_DEPENDENCIES = '1' ;
@@ -315,7 +315,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
315315 env . FORCE_COLOR = '1' ;
316316 }
317317
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 } ) ;
319319 if ( watchMode ) {
320320 filesWatcher . runningProcesses . set ( path , child ) ;
321321 filesWatcher . watcher . watchChildProcessModules ( child , path ) ;
@@ -332,7 +332,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
332332 subtest . parseMessage ( data ) ;
333333 } ) ;
334334
335- const rl = createInterface ( { input : child . stderr } ) ;
335+ const rl = createInterface ( { __proto__ : null , input : child . stderr } ) ;
336336 rl . on ( 'line' , ( line ) => {
337337 if ( isInspectorMessage ( line ) ) {
338338 process . stderr . write ( line + '\n' ) ;
@@ -350,8 +350,8 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
350350 } ) ;
351351
352352 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 } ) ,
355355 ] ) ;
356356
357357 if ( watchMode ) {
@@ -384,7 +384,7 @@ function runTestFile(path, root, inspectPort, filesWatcher, testNamePatterns) {
384384function watchFiles ( testFiles , root , inspectPort , signal , testNamePatterns ) {
385385 const runningProcesses = new SafeMap ( ) ;
386386 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 } ) ;
388388 const filesWatcher = { __proto__ : null , watcher, runningProcesses, runningSubtests } ;
389389
390390 watcher . on ( 'changed' , ( { owners } ) => {
@@ -469,7 +469,7 @@ function run(options) {
469469 } ) ;
470470 }
471471
472- const root = createTestTree ( { concurrency, timeout, signal } ) ;
472+ const root = createTestTree ( { __proto__ : null , concurrency, timeout, signal } ) ;
473473 let testFiles = files ?? createTestFileList ( ) ;
474474
475475 if ( shard ) {
0 commit comments