Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
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
TooTallNate committed Mar 28, 2012
1 parent eb1ff03 commit 48bbdde
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/repl.js
Expand Up @@ -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');
});

Expand Down

0 comments on commit 48bbdde

Please sign in to comment.