Index: Source/bindings/v8/WorkerScriptController.cpp |
diff --git a/Source/bindings/v8/WorkerScriptController.cpp b/Source/bindings/v8/WorkerScriptController.cpp |
index c24feb4c3dc2510d74494b1d8bbc5d8e34ea9e31..25c558b8bebeea836ecb58130191d0ff18697c96 100644 |
--- a/Source/bindings/v8/WorkerScriptController.cpp |
+++ b/Source/bindings/v8/WorkerScriptController.cpp |
@@ -115,7 +115,7 @@ bool WorkerScriptController::initializeContextIfNeeded() |
context->SetEmbedderData(0, v8::String::NewSymbol("worker")); |
// Create a new JS object and use it as the prototype for the shadow global object. |
- WrapperTypeInfo* contextType = &V8DedicatedWorkerGlobalScope::wrapperTypeInfo; |
+ const WrapperTypeInfo* contextType = &V8DedicatedWorkerGlobalScope::wrapperTypeInfo; |
if (!m_workerGlobalScope.isDedicatedWorkerGlobalScope()) |
contextType = &V8SharedWorkerGlobalScope::wrapperTypeInfo; |
v8::Handle<v8::Function> workerGlobalScopeConstructor = m_perContextData->constructorForType(contextType); |