Skip to content

Commit d09dc7d

Browse files
jasnellMayaLekova
authored andcommitted
perf_hooks: eliminate deprecation warning
PR-URL: nodejs#18789 Reviewed-By: Ali Ijaz Sheikh <[email protected]> Reviewed-By: Matteo Collina <[email protected]>
1 parent 041bc19 commit d09dc7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_perf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void PerformanceEntry::Notify(Environment* env,
8989
if (type != NODE_PERFORMANCE_ENTRY_TYPE_INVALID &&
9090
observers[type]) {
9191
node::MakeCallback(env->isolate(),
92-
env->process_object(),
92+
object.As<Object>(),
9393
env->performance_entry_callback(),
9494
1, &object,
9595
node::async_context{0, 0}).ToLocalChecked();

0 commit comments

Comments
 (0)