repl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor

pull/5370/head
Damon Oehlman 2011-12-29 12:15:49 +10:00 committed by Ben Noordhuis
parent 8c3a757ffc
commit 744ed46970
1 changed files with 2 additions and 2 deletions

View File

@ -247,8 +247,8 @@ exports.REPLServer = REPLServer;
// prompt is a string to print on each line for the prompt,
// source is a stream to use for I/O, defaulting to stdin/stdout.
exports.start = function(prompt, source, eval, useGlobal) {
var repl = new REPLServer(prompt, source, eval, useGlobal);
exports.start = function(prompt, source, eval, useGlobal, ignoreUndefined) {
var repl = new REPLServer(prompt, source, eval, useGlobal, ignoreUndefined);
if (!exports.repl) exports.repl = repl;
return repl;
};