From d00739ce56b07ab438eceffb0d701e90dc8b3fdc Mon Sep 17 00:00:00 2001 From: Wade Simmons Date: Wed, 13 Apr 2011 17:54:50 -0600 Subject: [PATCH] make it possible to do repl.start('', stream) --- lib/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/repl.js b/lib/repl.js index 75d09d70314..434ff66baeb 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -93,7 +93,7 @@ function REPLServer(prompt, stream) { process.stdin.resume(); } - self.prompt = prompt || '> '; + self.prompt = (prompt != undefined ? prompt : '> '); function complete(text) { return self.complete(text);