| Index: Source/bindings/v8/ScriptState.cpp
|
| diff --git a/Source/bindings/v8/ScriptState.cpp b/Source/bindings/v8/ScriptState.cpp
|
| index 0eda05f2ce68ef328d14846addc03e361ad20308..cd075f5e93ff6255002969389b7afdf11a061d10 100644
|
| --- a/Source/bindings/v8/ScriptState.cpp
|
| +++ b/Source/bindings/v8/ScriptState.cpp
|
| @@ -34,7 +34,6 @@
|
| #include "V8Window.h"
|
| #include "V8WorkerGlobalScope.h"
|
| #include "bindings/v8/ScriptController.h"
|
| -#include "bindings/v8/V8HiddenPropertyName.h"
|
| #include "bindings/v8/WorkerScriptController.h"
|
| #include "core/frame/Frame.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| @@ -72,12 +71,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(context->GetIsolate()));
|
| + v8::Local<v8::Value> scriptStateWrapper = getHiddenValue(innerGlobal, v8AtomicString(context->GetIsolate(), "scriptState"));
|
| if (!scriptStateWrapper.IsEmpty() && scriptStateWrapper->IsExternal())
|
| return static_cast<ScriptState*>(v8::External::Cast(*scriptStateWrapper)->Value());
|
|
|
| ScriptState* scriptState = new ScriptState(context);
|
| - innerGlobal->SetHiddenValue(V8HiddenPropertyName::scriptState(context->GetIsolate()), v8::External::New(context->GetIsolate(), scriptState));
|
| + setHiddenValue(innerGlobal, v8AtomicString(context->GetIsolate(), "scriptState"), v8::External::New(context->GetIsolate(), scriptState));
|
| return scriptState;
|
| }
|
|
|
|
|