Skip to content

Commit c00a6a7

Browse files
committed
Simplify REPL
1 parent 1d8b154 commit c00a6a7

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/repl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function REPLServer(prompt, stream) {
4848
self.buffered_cmd = '';
4949

5050
self.stream = stream || process.openStdin();
51-
self.prompt = prompt || "node> ";
51+
self.prompt = prompt || "> ";
5252

5353
var rli = self.rli = rl.createInterface(self.stream, function (text) {
5454
return self.complete(text);

src/node.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -746,9 +746,7 @@ if (process.argv[1]) {
746746
});
747747
} else {
748748
// No arguments, run the repl
749-
var repl = requireNative('repl');
750-
console.log("Type '.help' for options.");
751-
repl.start();
749+
requireNative('repl').start();
752750
}
753751

754752
// All our arguments are loaded. We've evaluated all of the scripts. We

0 commit comments

Comments
 (0)