Commit Graph

1 Commits

Author SHA1 Message Date
Trevor Norris
244ada3c71
async_hooks: emitAfter correctly on fatalException
Previously calling emitAfter() from _fatalException would skipt the
first asyncId. Instead use the size() of the std::stack to determine how
many times to loop and call emitAfter().

PR-URL: https://github.com/nodejs/node/pull/14914
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-08-30 00:34:37 -06:00