@@ -12,7 +12,6 @@ if (common.isIBMi)
12
12
common . skipIfInspectorDisabled ( ) ;
13
13
14
14
describe ( 'watch mode - inspect' , ( ) => {
15
- const silentLogger = { log : ( ) => { } , error : ( ) => { } } ;
16
15
async function getDebuggedPid ( instance , waitForLog = true ) {
17
16
const session = await instance . connectInspectorSession ( ) ;
18
17
await session . send ( { method : 'Runtime.enable' } ) ;
@@ -28,7 +27,7 @@ describe('watch mode - inspect', () => {
28
27
29
28
it ( 'should start debugger on inner process' , async ( ) => {
30
29
const file = fixtures . path ( 'watch-mode/inspect.js' ) ;
31
- const instance = new NodeInstance ( [ '--inspect=0' , '--watch' ] , undefined , file , silentLogger ) ;
30
+ const instance = new NodeInstance ( [ '--inspect=0' , '--watch' ] , undefined , file ) ;
32
31
let stderr = '' ;
33
32
instance . on ( 'stderr' , ( data ) => { stderr += data ; } ) ;
34
33
@@ -48,7 +47,7 @@ describe('watch mode - inspect', () => {
48
47
49
48
it ( 'should prevent attaching debugger with SIGUSR1 to outer process' , { skip : common . isWindows } , async ( ) => {
50
49
const file = fixtures . path ( 'watch-mode/inspect_with_signal.js' ) ;
51
- const instance = new NodeInstance ( [ '--inspect-port=0' , '--watch' ] , undefined , file , silentLogger ) ;
50
+ const instance = new NodeInstance ( [ '--inspect-port=0' , '--watch' ] , undefined , file ) ;
52
51
let stderr = '' ;
53
52
instance . on ( 'stderr' , ( data ) => { stderr += data ; } ) ;
54
53
0 commit comments