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
Backport-PR-URL: #39742
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
Qard authored and MylesBorins committed Aug 31, 2021
1 parent 13296d1 commit fc29ddb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/internal/trace_events_async_hooks.js
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 fc29ddb

Please sign in to comment.