summaryrefslogtreecommitdiff
path: root/src/node_worker.cc
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2019-11-02 21:04:57 +0100
committerAnna Henningsen <anna@addaleax.net>2019-11-06 23:26:05 +0100
commit86cdfc60a9ae21f64058e7292db3566d91d09085 (patch)
treeaa198ec92fea21445924e2b6657ff18e4a57faa0 /src/node_worker.cc
parent7e2a182d03c40faa567daebee5ce064675190bff (diff)
downloadandroid-node-v8-86cdfc60a9ae21f64058e7292db3566d91d09085.tar.gz
android-node-v8-86cdfc60a9ae21f64058e7292db3566d91d09085.tar.bz2
android-node-v8-86cdfc60a9ae21f64058e7292db3566d91d09085.zip
src: use unique_ptr for InitializeInspector()
This makes more sense than releasing and re-wrapping the raw pointer. PR-URL: https://github.com/nodejs/node/pull/30229 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r--src/node_worker.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index 8730e8b02b..b35b4040ca 100644
--- a/src/node_worker.cc
+++ b/src/node_worker.cc
@@ -325,7 +325,7 @@ void Worker::Run() {
{
env_->InitializeDiagnostics();
#if HAVE_INSPECTOR
- env_->InitializeInspector(inspector_parent_handle_.release());
+ env_->InitializeInspector(std::move(inspector_parent_handle_));
#endif
HandleScope handle_scope(isolate_);
InternalCallbackScope callback_scope(