From fc29ddb38e7f863afbe7a285be15f5bf94391dec Mon Sep 17 00:00:00 2001 From: Stephen Belanger Date: Mon, 5 Jul 2021 14:12:45 -0700 Subject: [PATCH] async_hooks: emit promise trace events from JS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39135 Backport-PR-URL: https://github.com/nodejs/node/pull/39742 Reviewed-By: Rich Trott Reviewed-By: Benjamin Gruenbaum Reviewed-By: Gerhard Stöbich --- lib/internal/trace_events_async_hooks.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/internal/trace_events_async_hooks.js b/lib/internal/trace_events_async_hooks.js index 9796f6866d96c8..9a2db5aeee9215 100644 --- a/lib/internal/trace_events_async_hooks.js +++ b/lib/internal/trace_events_async_hooks.js @@ -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