mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
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>
This commit is contained in:
1 parent
e060399ca0
commit
9ffe43109f
1 file changed
+1
-1
+1
-1
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user