Skip to content

Commit

Permalink
debugger: don't set the repl.prompt string
Browse files Browse the repository at this point in the history
It wasn't doing anything, and actually due to
3ae0b17, it was causing
the readline `prompt()` function to be overwritten
which throws an error in the REPL shortly after.
  • Loading branch information
TooTallNate authored and tjfontaine committed Feb 21, 2014
1 parent b105997 commit e746bbd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
};
Expand All @@ -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();
};
Expand Down

0 comments on commit e746bbd

Please sign in to comment.