perf_hooks: eliminate deprecation warning
PR-URL: https://github.com/nodejs/node/pull/18789 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
This commit is contained in:
parent
e6b823d84a
commit
aca8e764da
@ -89,7 +89,7 @@ void PerformanceEntry::Notify(Environment* env,
|
||||
if (type != NODE_PERFORMANCE_ENTRY_TYPE_INVALID &&
|
||||
observers[type]) {
|
||||
node::MakeCallback(env->isolate(),
|
||||
env->process_object(),
|
||||
object.As<Object>(),
|
||||
env->performance_entry_callback(),
|
||||
1, &object,
|
||||
node::async_context{0, 0}).ToLocalChecked();
|
||||
|
Loading…
x
Reference in New Issue
Block a user