Index: Source/bindings/v8/ScriptState.cpp |
diff --git a/Source/bindings/v8/ScriptState.cpp b/Source/bindings/v8/ScriptState.cpp |
index d59ccf0f1fa21dd69ff53d4dcb68bcd1e5a18b4b..030468075ebeca883e1520e6ccb5b4612aef687b 100644 |
--- a/Source/bindings/v8/ScriptState.cpp |
+++ b/Source/bindings/v8/ScriptState.cpp |
@@ -72,12 +72,12 @@ ScriptState* ScriptState::forContext(v8::Handle<v8::Context> context) |
v8::Local<v8::Object> innerGlobal = v8::Local<v8::Object>::Cast(context->Global()->GetPrototype()); |
- v8::Local<v8::Value> scriptStateWrapper = innerGlobal->GetHiddenValue(V8HiddenPropertyName::scriptState()); |
+ v8::Local<v8::Value> scriptStateWrapper = innerGlobal->GetHiddenValue(V8HiddenPropertyName::scriptState(context->GetIsolate())); |
if (!scriptStateWrapper.IsEmpty() && scriptStateWrapper->IsExternal()) |
return static_cast<ScriptState*>(v8::External::Cast(*scriptStateWrapper)->Value()); |
ScriptState* scriptState = new ScriptState(context); |
- innerGlobal->SetHiddenValue(V8HiddenPropertyName::scriptState(), v8::External::New(scriptState)); |
+ innerGlobal->SetHiddenValue(V8HiddenPropertyName::scriptState(context->GetIsolate()), v8::External::New(scriptState)); |
return scriptState; |
} |