@@ -958,38 +958,38 @@ function createRepl(inspector) {
958
958
959
959
get repl ( ) {
960
960
// Don't display any default messages
961
- const listeners = repl . rli . listeners ( 'SIGINT' ) . slice ( 0 ) ;
962
- repl . rli . removeAllListeners ( 'SIGINT' ) ;
961
+ const listeners = repl . listeners ( 'SIGINT' ) . slice ( 0 ) ;
962
+ repl . removeAllListeners ( 'SIGINT' ) ;
963
963
964
964
const oldContext = repl . context ;
965
965
966
966
exitDebugRepl = ( ) => {
967
967
// Restore all listeners
968
968
process . nextTick ( ( ) => {
969
969
listeners . forEach ( ( listener ) => {
970
- repl . rli . on ( 'SIGINT' , listener ) ;
970
+ repl . on ( 'SIGINT' , listener ) ;
971
971
} ) ;
972
972
} ) ;
973
973
974
974
// Exit debug repl
975
975
repl . eval = controlEval ;
976
976
977
977
// Swap history
978
- history . debug = repl . rli . history ;
979
- repl . rli . history = history . control ;
978
+ history . debug = repl . history ;
979
+ repl . history = history . control ;
980
980
981
981
repl . context = oldContext ;
982
- repl . rli . setPrompt ( 'debug> ' ) ;
982
+ repl . setPrompt ( 'debug> ' ) ;
983
983
repl . displayPrompt ( ) ;
984
984
985
- repl . rli . removeListener ( 'SIGINT' , exitDebugRepl ) ;
985
+ repl . removeListener ( 'SIGINT' , exitDebugRepl ) ;
986
986
repl . removeListener ( 'exit' , exitDebugRepl ) ;
987
987
988
988
exitDebugRepl = null ;
989
989
} ;
990
990
991
991
// Exit debug repl on SIGINT
992
- repl . rli . on ( 'SIGINT' , exitDebugRepl ) ;
992
+ repl . on ( 'SIGINT' , exitDebugRepl ) ;
993
993
994
994
// Exit debug repl on repl exit
995
995
repl . on ( 'exit' , exitDebugRepl ) ;
@@ -999,10 +999,10 @@ function createRepl(inspector) {
999
999
repl . context = { } ;
1000
1000
1001
1001
// Swap history
1002
- history . control = repl . rli . history ;
1003
- repl . rli . history = history . debug ;
1002
+ history . control = repl . history ;
1003
+ repl . history = history . debug ;
1004
1004
1005
- repl . rli . setPrompt ( '> ' ) ;
1005
+ repl . setPrompt ( '> ' ) ;
1006
1006
1007
1007
print ( 'Press Ctrl + C to leave debug repl' ) ;
1008
1008
repl . displayPrompt ( ) ;
@@ -1077,7 +1077,7 @@ function createRepl(inspector) {
1077
1077
1078
1078
repl . defineCommand ( 'interrupt' , ( ) => {
1079
1079
// We want this for testing purposes where sending CTRL-C can be tricky.
1080
- repl . rli . emit ( 'SIGINT' ) ;
1080
+ repl . emit ( 'SIGINT' ) ;
1081
1081
} ) ;
1082
1082
1083
1083
// Init once for the initial connection
0 commit comments