diff options
author | cjihrig <cjihrig@gmail.com> | 2018-10-06 16:19:43 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-10-09 08:33:33 -0400 |
commit | 7ee832372510ed3a3b0848f29c7360cb0dc59103 (patch) | |
tree | 6e197a1ee3a26717523d9a7c7d310bdbd49d2b82 /src/node_worker.cc | |
parent | 2c7409f3b86065b1935be8ecb48c631db5cb7598 (diff) | |
download | node-new-7ee832372510ed3a3b0848f29c7360cb0dc59103.tar.gz |
src: reduce variable scope in node_worker.cc
PR-URL: https://github.com/nodejs/node/pull/23297
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_worker.cc')
-rw-r--r-- | src/node_worker.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc index 63d89a966d..debec3078c 100644 --- a/src/node_worker.cc +++ b/src/node_worker.cc @@ -150,13 +150,13 @@ void Worker::Run() { TRACE_STR_COPY(name.c_str())); MultiIsolatePlatform* platform = isolate_data_->platform(); CHECK_NE(platform, nullptr); - bool inspector_started = false; Debug(this, "Starting worker with id %llu", thread_id_); { Locker locker(isolate_); Isolate::Scope isolate_scope(isolate_); SealHandleScope outer_seal(isolate_); + bool inspector_started = false; { Context::Scope context_scope(env_->context()); |