mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
inspector: skip promise hook in the inspector async hook
Instead of filtering out promises in the async hooks added for async task tracking, add an internal path to skip adding the promise hook completely for the inspector async hook. The actual user-land promise tracking is already handled by V8 inspector. This prevents the internal promise hook from showing up and creating unnecessary noise when stepping into async execution in the inspector. PR-URL: https://github.com/nodejs/node/pull/57148 Refs: https://issues.chromium.org/issues/390581540 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
This commit is contained in:
parent
7f768f6768
commit
e2bc395c42
4 changed files with 11 additions and 19 deletions
|
@ -576,6 +576,7 @@ function triggerAsyncId() {
|
|||
return async_id_fields[kTriggerAsyncId];
|
||||
}
|
||||
|
||||
const kNoPromiseHook = Symbol('kNoPromiseHook');
|
||||
|
||||
module.exports = {
|
||||
executionAsyncId,
|
||||
|
@ -624,4 +625,5 @@ module.exports = {
|
|||
asyncWrap: {
|
||||
Providers: async_wrap.Providers,
|
||||
},
|
||||
kNoPromiseHook,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue