|
8 | 8 | #include "util-inl.h"
|
9 | 9 | #include "async_wrap-inl.h"
|
10 | 10 |
|
11 |
| -#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR |
| 11 | +#if HAVE_INSPECTOR |
12 | 12 | #include "inspector/worker_inspector.h" // ParentInspectorHandle
|
13 | 13 | #endif
|
14 | 14 |
|
@@ -39,7 +39,7 @@ namespace worker {
|
39 | 39 |
|
40 | 40 | namespace {
|
41 | 41 |
|
42 |
| -#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR |
| 42 | +#if HAVE_INSPECTOR |
43 | 43 | void WaitForWorkerInspectorToStop(Environment* child) {
|
44 | 44 | child->inspector_agent()->WaitForDisconnect();
|
45 | 45 | child->inspector_agent()->Stop();
|
@@ -82,7 +82,7 @@ Worker::Worker(Environment* env,
|
82 | 82 | Number::New(env->isolate(), static_cast<double>(thread_id_)))
|
83 | 83 | .Check();
|
84 | 84 |
|
85 |
| -#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR |
| 85 | +#if HAVE_INSPECTOR |
86 | 86 | inspector_parent_handle_ =
|
87 | 87 | env->inspector_agent()->GetParentHandle(thread_id_, url);
|
88 | 88 | #endif
|
@@ -193,7 +193,7 @@ void Worker::Run() {
|
193 | 193 | Locker locker(isolate_);
|
194 | 194 | Isolate::Scope isolate_scope(isolate_);
|
195 | 195 | SealHandleScope outer_seal(isolate_);
|
196 |
| -#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR |
| 196 | +#if HAVE_INSPECTOR |
197 | 197 | bool inspector_started = false;
|
198 | 198 | #endif
|
199 | 199 |
|
@@ -225,7 +225,7 @@ void Worker::Run() {
|
225 | 225 | env_->stop_sub_worker_contexts();
|
226 | 226 | env_->RunCleanup();
|
227 | 227 | RunAtExit(env_.get());
|
228 |
| -#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR |
| 228 | +#if HAVE_INSPECTOR |
229 | 229 | if (inspector_started)
|
230 | 230 | WaitForWorkerInspectorToStop(env_.get());
|
231 | 231 | #endif
|
@@ -270,7 +270,7 @@ void Worker::Run() {
|
270 | 270 | if (is_stopped()) return;
|
271 | 271 | {
|
272 | 272 | env_->InitializeDiagnostics();
|
273 |
| -#if NODE_USE_V8_PLATFORM && HAVE_INSPECTOR |
| 273 | +#if HAVE_INSPECTOR |
274 | 274 | env_->InitializeInspector(inspector_parent_handle_.release());
|
275 | 275 | inspector_started = true;
|
276 | 276 | #endif
|
|
0 commit comments