Simplify REPL

This commit is contained in:
Ryan Dahl committed 2010-09-17 11:23:04 -07:00
1 parent 1d8b154e14
commit c00a6a7169
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -48,7 +48,7 @@ function REPLServer(prompt, stream) {
self.buffered_cmd = '';
self.stream = stream || process.openStdin();
self.prompt = prompt || "node> ";
self.prompt = prompt || "> ";
var rli = self.rli = rl.createInterface(self.stream, function (text) {
return self.complete(text);
+1 -3
View File
@@ -746,9 +746,7 @@ if (process.argv[1]) {
});
} else {
// No arguments, run the repl
var repl = requireNative('repl');
console.log("Type '.help' for options.");
repl.start();
requireNative('repl').start();
}
// All our arguments are loaded. We've evaluated all of the scripts. We