File tree Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Expand file tree Collapse file tree 1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -1062,19 +1062,16 @@ function createRepl(inspector) {
10621062 }
10631063
10641064 function initAfterStart ( ) {
1065- const setupTasks = [
1066- Runtime . enable ( ) ,
1067- Profiler . enable ( ) ,
1068- Profiler . setSamplingInterval ( { interval : 100 } ) ,
1069- Debugger . enable ( ) ,
1070- Debugger . setPauseOnExceptions ( { state : 'none' } ) ,
1071- Debugger . setAsyncCallStackDepth ( { maxDepth : 0 } ) ,
1072- Debugger . setBlackboxPatterns ( { patterns : [ ] } ) ,
1073- Debugger . setPauseOnExceptions ( { state : pauseOnExceptionState } ) ,
1074- restoreBreakpoints ( ) ,
1075- Runtime . runIfWaitingForDebugger ( ) ,
1076- ] ;
1077- return Promise . all ( setupTasks ) ;
1065+ return Runtime . enable ( )
1066+ . then ( ( ) => Profiler . enable ( ) )
1067+ . then ( ( ) => Profiler . setSamplingInterval ( { interval : 100 } ) )
1068+ . then ( ( ) => Debugger . enable ( ) )
1069+ . then ( ( ) => Debugger . setPauseOnExceptions ( { state : 'none' } ) )
1070+ . then ( ( ) => Debugger . setAsyncCallStackDepth ( { maxDepth : 0 } ) )
1071+ . then ( ( ) => Debugger . setBlackboxPatterns ( { patterns : [ ] } ) )
1072+ . then ( ( ) => Debugger . setPauseOnExceptions ( { state : pauseOnExceptionState } ) )
1073+ . then ( ( ) => restoreBreakpoints ( ) )
1074+ . then ( ( ) => Runtime . runIfWaitingForDebugger ( ) )
10781075 }
10791076
10801077 return function startRepl ( ) {
You can’t perform that action at this time.
0 commit comments