I have a patch to fix this. Will send in a few days.

On Saturday, March 16, 2013, Alexey Kupershtokh wrote:

> In lib/repl.js:
>
> > @@ -199,6 +200,13 @@ function REPLServer(prompt, stream, eval_, useGlobal, ignoreUndefined) {
> >      self.displayPrompt();
> >    });
> >
> > +  var replDomain = domain.create();
> > +  replDomain.on('error', function(e) {
> > +    self.outputStream.write((e.stack || e) + '\n');
> > +    self.bufferedCommand = '';
> > +    self.displayPrompt();
>
> @TooTallNate <https://github.com/TooTallNate> ah. But by the time async
> command arises we could have typed a new command. Why should repl delete it?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/joyent/node/pull/4491/files#r3404752>
> .
>