Commit ce391ed8 authored by Jeremiah Senkpiel's avatar Jeremiah Senkpiel Committed by Rod Vagg
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 b4f4c245
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