mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
debugger: don't set the repl.prompt string
It wasn't doing anything, and actually due to
3ae0b17c76, it was causing
the readline `prompt()` function to be overwritten
which throws an error in the REPL shortly after.
This commit is contained in:
committed by
Timothy J Fontaine
parent
b105997193
commit
e746bbdc2b
@@ -1558,7 +1558,6 @@ Interface.prototype.repl = function() {
|
||||
this.history.control = this.repl.rli.history;
|
||||
this.repl.rli.history = this.history.debug;
|
||||
|
||||
this.repl.prompt = '> ';
|
||||
this.repl.rli.setPrompt('> ');
|
||||
this.repl.displayPrompt();
|
||||
};
|
||||
@@ -1574,7 +1573,6 @@ Interface.prototype.exitRepl = function() {
|
||||
this.repl.rli.history = this.history.control;
|
||||
|
||||
this.repl.context = this.context;
|
||||
this.repl.prompt = 'debug> ';
|
||||
this.repl.rli.setPrompt('debug> ');
|
||||
this.repl.displayPrompt();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user