diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-10-23 16:06:16 +0200 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2019-10-26 15:19:23 +0200 |
commit | 6858c7e3e7c30986d68a683d3d5e4ede4c0b529f (patch) | |
tree | 515636c8d386a4f1bd66f3b4ef6988499c9c5540 /doc/api/policy.md | |
parent | cb36fa67d77ff6891a48db0b473d1c51888e23ed (diff) | |
download | android-node-v8-6858c7e3e7c30986d68a683d3d5e4ede4c0b529f.tar.gz android-node-v8-6858c7e3e7c30986d68a683d3d5e4ede4c0b529f.tar.bz2 android-node-v8-6858c7e3e7c30986d68a683d3d5e4ede4c0b529f.zip |
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/policy.md')
0 files changed, 0 insertions, 0 deletions