Skip to content

Commit

Permalink
async_hooks: emit promise trace events from JS
Browse files Browse the repository at this point in the history
PR-URL: nodejs#39135
Backport-PR-URL: nodejs#39742
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Gerhard Stöbich <[email protected]>
  • Loading branch information
Stephen Belanger authored and foxxyz committed Oct 18, 2021
1 parent 5a1841c commit 7114224
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/trace_events_async_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const kEnabled = Symbol('enabled');
// twice the async_wrap.Providers list is used to filter the events.
const nativeProviders = new SafeSet(ObjectKeys(async_wrap.Providers));
const typeMemory = new SafeMap();
nativeProviders.delete('PROMISE');

function createHook() {
// In traceEvents it is not only the id but also the name that needs to be
Expand Down

0 comments on commit 7114224

Please sign in to comment.