Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2018-10-06 23:19:43 +0300
committerMichaƫl Zasso <targos@protonmail.com>2018-10-10 05:15:57 +0300
commit740741b279f6eac9ecdeb6bc487cac488f29bf31 (patch)
tree79fc1e181ff916dd94a443ac7bcc9c32dc3dfd89 /src/node_worker.cc
parent56c2f5702fc8baf70661d3788a1211abe2cb0ffc (diff)
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.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_worker.cc b/src/node_worker.cc
index ec699bb312f..91ef9f2a96e 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());