Commit ecab7a6b authored by Jeremiah Senkpiel's avatar Jeremiah Senkpiel
Browse files

repl: event ordering: delay 'close' until 'flushHistory'

Emitting 'close' before the history has flushed is somewhat incorrect
and rather confusing.

This also makes the 'close' event always asynchronous for consistency.

Refs: https://github.com/nodejs/node/pull/2356
PR-URL: https://github.com/nodejs/node/pull/3435


Reviewed By: Evan Lucas <evanlucas@me.com>
Reviewed-By: default avatarTrevor Norris <trev.norris@gmail.com>
parent f5445db4
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment