mirror of https://github.com/nodejs/node.git
repl: fix repl.start not passing the `ignoreUndefined` arg to the REPLServer constructor
parent
8c3a757ffc
commit
744ed46970
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue