Index: Source/core/inspector/JavaScriptCallFrame.cpp |
diff --git a/Source/core/inspector/JavaScriptCallFrame.cpp b/Source/core/inspector/JavaScriptCallFrame.cpp |
index c52ebe7757712c7bbf4550ae10425d1d1df64a5d..4add3bcbb8a8f32485103b99bb679c47f8e6b13f 100644 |
--- a/Source/core/inspector/JavaScriptCallFrame.cpp |
+++ b/Source/core/inspector/JavaScriptCallFrame.cpp |
@@ -170,6 +170,7 @@ v8::Handle<v8::Object> JavaScriptCallFrame::innerCallFrame() |
ScriptValue JavaScriptCallFrame::setVariableValue(ScriptState* scriptState, int scopeNumber, const String& variableName, const ScriptValue& newValue) |
{ |
+ ScriptState::Scope scriptScope(scriptState); |
v8::Handle<v8::Object> callFrame = m_callFrame.newLocal(m_isolate); |
v8::Handle<v8::Function> setVariableValueFunction = v8::Handle<v8::Function>::Cast(callFrame->Get(v8AtomicString(m_isolate, "setVariableValue"))); |
v8::Handle<v8::Value> argv[] = { |