Skip to content

Commit d00739c

Browse files
wadeyisaacs
authored andcommitted
make it possible to do repl.start('', stream)
1 parent 90802d6 commit d00739c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function REPLServer(prompt, stream) {
9393
process.stdin.resume();
9494
}
9595

96-
self.prompt = prompt || '> ';
96+
self.prompt = (prompt != undefined ? prompt : '> ');
9797

9898
function complete(text) {
9999
return self.complete(text);

0 commit comments

Comments
 (0)