diff --git a/src/node_perf.cc b/src/node_perf.cc index 5fa4eabc9934de..1eddb00f48a6d2 100644 --- a/src/node_perf.cc +++ b/src/node_perf.cc @@ -159,11 +159,10 @@ void PerformanceEntry::Notify(Environment* env, AliasedUint32Array& observers = env->performance_state()->observers; if (!env->performance_entry_callback().IsEmpty() && type != NODE_PERFORMANCE_ENTRY_TYPE_INVALID && observers[type]) { - node::MakeCallback(env->isolate(), - object.As(), - env->performance_entry_callback(), - 1, &object, - node::async_context{0, 0}); + node::MakeSyncCallback(env->isolate(), + object.As(), + env->performance_entry_callback(), + 1, &object); } }