Browse Source

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.
v0.11.12-release
Nathan Rajlich 11 years ago
committed by Timothy J Fontaine
parent
commit
e746bbdc2b
  1. 2
      lib/_debugger.js

2
lib/_debugger.js

@ -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();
};

Loading…
Cancel
Save