Skip to content

Commit aca8e76

Browse files
committed
perf_hooks: eliminate deprecation warning
PR-URL: #18789 Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent e6b823d commit aca8e76

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)