aboutsummaryrefslogtreecommitdiff
path: root/lib/internal/trace_events_async_hooks.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/trace_events_async_hooks.js')
-rw-r--r--lib/internal/trace_events_async_hooks.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/internal/trace_events_async_hooks.js b/lib/internal/trace_events_async_hooks.js
index 4485b7a8c8..87ee63d8ba 100644
--- a/lib/internal/trace_events_async_hooks.js
+++ b/lib/internal/trace_events_async_hooks.js
@@ -1,6 +1,10 @@
'use strict';
-const { Object, SafeMap, SafeSet } = primordials;
+const {
+ ObjectKeys,
+ SafeMap,
+ SafeSet,
+} = primordials;
const { trace } = internalBinding('trace_events');
const async_wrap = internalBinding('async_wrap');
@@ -20,7 +24,7 @@ const kEnabled = Symbol('enabled');
// Embedder C++ API can't be emitted from async_wrap.cc. Thus they are
// emitted using the JavaScript API. To prevent emitting the same event
// twice the async_wrap.Providers list is used to filter the events.
-const nativeProviders = new SafeSet(Object.keys(async_wrap.Providers));
+const nativeProviders = new SafeSet(ObjectKeys(async_wrap.Providers));
const typeMemory = new SafeMap();
function createHook() {