Skip to content

Commit e746bbd

Browse files
TooTallNatetjfontaine
authored andcommitted
debugger: don't set the repl.prompt string
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.
1 parent b105997 commit e746bbd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/_debugger.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,7 +1558,6 @@ Interface.prototype.repl = function() {
15581558
this.history.control = this.repl.rli.history;
15591559
this.repl.rli.history = this.history.debug;
15601560

1561-
this.repl.prompt = '> ';
15621561
this.repl.rli.setPrompt('> ');
15631562
this.repl.displayPrompt();
15641563
};
@@ -1574,7 +1573,6 @@ Interface.prototype.exitRepl = function() {
15741573
this.repl.rli.history = this.history.control;
15751574

15761575
this.repl.context = this.context;
1577-
this.repl.prompt = 'debug> ';
15781576
this.repl.rli.setPrompt('debug> ');
15791577
this.repl.displayPrompt();
15801578
};

0 commit comments

Comments
 (0)