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: #39135
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
  • Loading branch information
Stephen Belanger authored and BethGriggs committed Jul 29, 2021
1 parent e18778d commit b5248d4
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 b5248d4

Please sign in to comment.