Permalink
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...
1 parent 208b230 commit f39ff6a096d3ae3134e12d273559284596bae6f8 @TooTallNate committed Mar 28, 2012
Showing with 0 additions and 1 deletion.
  1. +0 −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');
});

0 comments on commit f39ff6a

Please sign in to comment.