async_hooks: emitAfter correctly on fatalException
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
async_hooks
Notes
Previously calling emitAfter()
from _fatalException
would skip the
first asyncId
. Instead use the size()
of the std::stack
to determine how
many times to loop and call emitAfter()
.