From 86cdfc60a9ae21f64058e7292db3566d91d09085 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Sat, 2 Nov 2019 21:04:57 +0100 Subject: 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 Reviewed-By: Gireesh Punathil Reviewed-By: Joyee Cheung Reviewed-By: Shelley Vohr --- src/node_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/node_worker.cc') 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( -- cgit v1.2.3