Skip to content

Commit

Permalink
perf_hooks: eliminate deprecation warning
Browse files Browse the repository at this point in the history
PR-URL: #18789
Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
jasnell committed Feb 26, 2018
1 parent e6b823d commit aca8e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_perf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit aca8e76

Please sign in to comment.