Index: third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp |
diff --git a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp |
index 3b1d9d97814b63ba7d512dfabb8e51a40bcee40a..af0a7b9a3d3afb42d6568dc7421fd997c2748c54 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp |
+++ b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp |
@@ -185,7 +185,7 @@ bool WorkerOrWorkletScriptController::initializeContextIfNeeded() |
// Name new context for debugging. For main thread worklet global scopes |
// this is done once the context is initialized. |
- if (m_globalScope->isWorkerGlobalScope()) { |
+ if (m_globalScope->isWorkerGlobalScope() || m_globalScope->isThreadedWorkletGlobalScope()) { |
WorkerThreadDebugger* debugger = WorkerThreadDebugger::from(m_isolate); |
if (debugger) |
debugger->contextCreated(context); |