Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

repl: don't write a newline on the readline 'end' event

In the case of the input stream *actually* having been closed, then we
can't write to a closed socket.

Fixes test/simple/test-repl.js
  • Loading branch information...
commit f39ff6a096d3ae3134e12d273559284596bae6f8 1 parent 208b230
Nathan Rajlich authored
Showing with 0 additions and 1 deletion.
  1. +0 −1  lib/repl.js
1  lib/repl.js
View
@@ -176,7 +176,6 @@ function REPLServer(prompt, stream, eval, useGlobal, ignoreUndefined) {
rli.setPrompt(self.prompt);
rli.on('end', function() {
- self.rli.output.write('\n');
self.emit('exit');
});
Please sign in to comment.
Something went wrong with that request. Please try again.