Skip to content

async_hooks: emitAfter correctly on fatalException

Checklist
  • make -j4 test (UNIX), or vcbuild 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().

CI: https://ci.nodejs.org/job/node-test-pull-request/9730/

Merge request reports

Loading