diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-10-23 17:06:16 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-10-26 16:19:23 +0300 |
commit | 6858c7e3e7c30986d68a683d3d5e4ede4c0b529f (patch) | |
tree | 515636c8d386a4f1bd66f3b4ef6988499c9c5540 /doc/api/tracing.md | |
parent | cb36fa67d77ff6891a48db0b473d1c51888e23ed (diff) |
async_hooks: only emit `after` for AsyncResource if stack not empty
We clear the async id stack inside the uncaught exception handler and
emit `after` events in the process, so we should not emit `after`
a second time from the `runInAsyncScope()` code.
This should match the behaviour we have in C++.
Fixes: https://github.com/nodejs/node/issues/30080
PR-URL: https://github.com/nodejs/node/pull/30087
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Diffstat (limited to 'doc/api/tracing.md')
0 files changed, 0 insertions, 0 deletions