Index: Source/bindings/v8/ScriptState.cpp |
diff --git a/Source/bindings/v8/ScriptState.cpp b/Source/bindings/v8/ScriptState.cpp |
index e7856417c0db1b417fbb70d9f62e4ec69dd6ac40..d035014194227fe90ce5d69cbd8b9a5e4260ec57 100644 |
--- a/Source/bindings/v8/ScriptState.cpp |
+++ b/Source/bindings/v8/ScriptState.cpp |
@@ -109,7 +109,7 @@ void ScriptState::setEvalEnabled(bool enabled) |
ScriptState* mainWorldScriptState(Frame* frame) |
{ |
- v8::HandleScope handleScope(frame->script()->isolate()); |
+ v8::HandleScope handleScope(isolateForFrame(frame)); |
return ScriptState::forContext(frame->script()->mainWorldContext()); |
} |