| 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 a15714aed67df4550aeb6207f014f7ca7d44dd63..2d6a071e52552ffab4b5661ab972e06ef5f461d3 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/WorkerOrWorkletScriptController.cpp
|
| @@ -192,6 +192,10 @@ bool WorkerOrWorkletScriptController::initializeContextIfNeeded()
|
| v8::Local<v8::Object> globalObject = globalProxy->GetPrototype().As<v8::Object>();
|
| globalObject = V8DOMWrapper::associateObjectWithWrapper(m_isolate, scriptWrappable, wrapperTypeInfo, globalObject);
|
|
|
| + // All interfaces must be registered to V8PerContextData.
|
| + // So we explicitly call constructorForType for the global object.
|
| + V8PerContextData::from(context)->constructorForType(wrapperTypeInfo);
|
| +
|
| return true;
|
| }
|
|
|
|
|