From e746bbdc2b79881b2c991c829b5437340583a064 Mon Sep 17 00:00:00 2001 From: Nathan Rajlich Date: Thu, 20 Feb 2014 22:13:41 -0800 Subject: [PATCH] debugger: don't set the `repl.prompt` string It wasn't doing anything, and actually due to 3ae0b17c76f693dd2e68a46f78c7dc7f595b33c6, it was causing the readline `prompt()` function to be overwritten which throws an error in the REPL shortly after. --- lib/_debugger.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/_debugger.js b/lib/_debugger.js index 93d04c9ded..c638f2933d 100644 --- a/lib/_debugger.js +++ b/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(); };