Commit 60a0764 1 parent 0955aae commit 60a0764 Copy full SHA for 60a0764
File tree 1 file changed +10
-13
lines changed
1 file changed +10
-13
lines changed Original file line number Diff line number Diff line change @@ -1062,19 +1062,16 @@ function createRepl(inspector) {
1062
1062
}
1063
1063
1064
1064
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 ( ) )
1078
1075
}
1079
1076
1080
1077
return function startRepl ( ) {
You can’t perform that action at this time.
0 commit comments