Lines Matching refs:repl
53 const Repl = require('repl');
99 repl Enter a debug repl that works like exec
370 let repl;
1096 get repl() {
1098 const listeners = ArrayPrototypeSlice(repl.listeners('SIGINT'));
1099 repl.removeAllListeners('SIGINT');
1101 const oldContext = repl.context;
1107 repl.on('SIGINT', listener);
1111 // Exit debug repl
1112 repl.eval = controlEval;
1115 history.debug = repl.history;
1116 repl.history = history.control;
1118 repl.context = oldContext;
1119 repl.setPrompt('debug> ');
1120 repl.displayPrompt();
1122 repl.removeListener('SIGINT', exitDebugRepl);
1123 repl.removeListener('exit', exitDebugRepl);
1128 // Exit debug repl on SIGINT
1129 repl.on('SIGINT', exitDebugRepl);
1131 // Exit debug repl on repl exit
1132 repl.on('exit', exitDebugRepl);
1135 repl.eval = debugEval;
1136 repl.context = {};
1139 history.control = repl.history;
1140 repl.history = history.debug;
1142 repl.setPrompt('> ');
1144 print('Press Ctrl+C to leave debug repl');
1145 return repl.displayPrompt();
1211 repl = Repl.start(replOptions);
1212 initializeContext(repl.context);
1213 repl.on('reset', initializeContext);
1215 repl.defineCommand('interrupt', () => {
1217 repl.emit('SIGINT');
1220 return repl;