|
2 | 2 | #include "inspector_agent.h" |
3 | 3 | #include "inspector_io.h" |
4 | 4 | #include "memory_tracker-inl.h" |
| 5 | +#include "snapshot_support-inl.h" |
5 | 6 | #include "util-inl.h" |
6 | 7 | #include "v8.h" |
7 | 8 | #include "v8-inspector.h" |
@@ -345,6 +346,31 @@ void Initialize(Local<Object> target, Local<Value> unused, |
345 | 346 | JSBindingsConnection<MainThreadConnection>::Bind(env, target); |
346 | 347 | } |
347 | 348 |
|
| 349 | +static ExternalReferences external_references { |
| 350 | + __FILE__, |
| 351 | + InspectorConsoleCall, |
| 352 | + SetConsoleExtensionInstaller, |
| 353 | + CallAndPauseOnStart, |
| 354 | + Open, |
| 355 | + Url, |
| 356 | + WaitForDebugger, |
| 357 | + AsyncTaskScheduledWrapper, |
| 358 | + InvokeAsyncTaskFnWithId<&Agent::AsyncTaskCanceled>, |
| 359 | + InvokeAsyncTaskFnWithId<&Agent::AsyncTaskStarted>, |
| 360 | + InvokeAsyncTaskFnWithId<&Agent::AsyncTaskFinished>, |
| 361 | + RegisterAsyncHookWrapper, |
| 362 | + IsEnabled, |
| 363 | + JSBindingsConnection<LocalConnection>::New, |
| 364 | + JSBindingsConnection<LocalConnection>::Dispatch, |
| 365 | + // Disconnect is overloaded, pick the right one |
| 366 | + static_cast<void(*)(const FunctionCallbackInfo<Value>& args)>( |
| 367 | + JSBindingsConnection<LocalConnection>::Disconnect), |
| 368 | + JSBindingsConnection<MainThreadConnection>::New, |
| 369 | + JSBindingsConnection<MainThreadConnection>::Dispatch, |
| 370 | + static_cast<void(*)(const FunctionCallbackInfo<Value>& args)>( |
| 371 | + JSBindingsConnection<MainThreadConnection>::Disconnect), |
| 372 | +}; |
| 373 | + |
348 | 374 | } // namespace |
349 | 375 | } // namespace inspector |
350 | 376 | } // namespace node |
|
0 commit comments