async_hooks: emit promise trace events from JS

PR-URL: https://github.com/nodejs/node/pull/39135
Backport-PR-URL: https://github.com/nodejs/node/pull/39742
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de>
This commit is contained in:
Stephen Belanger authored and Myles Borins committed 2021-08-31 10:55:08 -04:00
1 parent 13296d1abf
commit fc29ddb38e
1 file changed
+1
+1
View File
@@ -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