diff options
author | James M Snell <jasnell@gmail.com> | 2018-02-14 13:50:14 -0800 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2018-02-26 13:55:26 -0800 |
commit | aca8e764da444a9a5eb67812db2317c1c32215d9 (patch) | |
tree | 8e9b7d9a13bc54f1ee6e69911ee0535895ab2b07 /src | |
parent | e6b823d84ac2382bc2d863a8c9de437590ea20d5 (diff) | |
download | android-node-v8-aca8e764da444a9a5eb67812db2317c1c32215d9.tar.gz android-node-v8-aca8e764da444a9a5eb67812db2317c1c32215d9.tar.bz2 android-node-v8-aca8e764da444a9a5eb67812db2317c1c32215d9.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_perf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_perf.cc b/src/node_perf.cc index 8ee805a838..a4297c21f0 100644 --- a/src/node_perf.cc +++ b/src/node_perf.cc @@ -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(); |