Skip to content
Browse files

[repl] change arguments order

  • Loading branch information...
1 parent d5a21a2 commit 9018906853895f07b149737b5f8c2775e551f549 @indutny committed
Showing with 3 additions and 3 deletions.
  1. +1 −1 doc/api/repl.markdown
  2. +1 −1 lib/repl.js
  3. +1 −1 src/node.js
View
2 doc/api/repl.markdown
@@ -27,7 +27,7 @@ For example, you could add this to your bashrc file:
alias node="env NODE_NO_READLINE=1 rlwrap node"
-### repl.start(prompt='> ', stream=process.stdin, eval=eval, useGlobal=false)
+### repl.start(prompt='> ', stream=process.stdin, useGlobal=false, eval=eval)
Starts a REPL with `prompt` as the prompt and `stream` for all I/O. `prompt`
is optional and defaults to `> `. `stream` is optional and defaults to
View
2 lib/repl.js
@@ -68,7 +68,7 @@ module.paths = require('module')._nodeModulePaths(module.filename);
exports.writer = util.inspect;
-function REPLServer(prompt, stream, eval, useGlobal) {
+function REPLServer(prompt, stream, useGlobal, eval) {
var self = this;
self.useGlobal = useGlobal;
View
2 src/node.js
@@ -107,7 +107,7 @@
// If stdin is a TTY.
if (NativeModule.require('tty').isatty(0)) {
// REPL
- var repl = Module.requireRepl().start('> ', null, null, true);
+ var repl = Module.requireRepl().start('> ', null, true);
} else {
// Read all of stdin - execute it.

0 comments on commit 9018906

Please sign in to comment.
Something went wrong with that request. Please try again.