Closed
Description
- Version: 6.9.0
- Platform: 64-bit windows 10
When using the REPL's .editor mode, the following error occurs when hitting the 'ENTER' key after a return statement. Tested in both CMD and Git Bash
C:\Users\joe>node -v
v6.9.0
C:\Users\joe>node
> var a = 1
undefined
> .editor
// Entering editor mode (^D to finish, ^C to cancel)
function thing (x) {
return x
readline.js:982
throw err;
^
Error: write EPIPE
at exports._errnoException (util.js:1026:11)
at ReadStream.Socket._writeGeneric (net.js:710:26)
at ReadStream.Socket._write (net.js:729:8)
at doWrite (_stream_writable.js:333:12)
at writeOrBuffer (_stream_writable.js:319:5)
at ReadStream.Writable.write (_stream_writable.js:246:11)
at ReadStream.Socket.write (net.js:656:40)
at REPLServer.<anonymous> (repl.js:479:26)
at emitOne (events.js:101:20)
at REPLServer.emit (events.js:188:7)