diff --git a/lib/repl.js b/lib/repl.js index 153d415f4d9..6f58f764797 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -224,7 +224,7 @@ function REPLServer(prompt, stream, eval, useGlobal) { self.bufferedCommand = ''; // If we got any output - print it (if no error) - if (!e && ret !== undefined) { + if (!e) { self.context._ = ret; self.outputStream.write(exports.writer(ret) + '\n'); }