Index: Source/bindings/v8/SerializedScriptValue.cpp |
diff --git a/Source/bindings/v8/SerializedScriptValue.cpp b/Source/bindings/v8/SerializedScriptValue.cpp |
index 593f6c6785a6bf760609c3d78dbc84ce2bc32749..46a815b2a003f18f0afa8b3fffcb4c8a953b0c1c 100644 |
--- a/Source/bindings/v8/SerializedScriptValue.cpp |
+++ b/Source/bindings/v8/SerializedScriptValue.cpp |
@@ -2510,10 +2510,11 @@ v8::Handle<v8::Value> SerializedScriptValue::deserialize(v8::Isolate* isolate, M |
ScriptValue SerializedScriptValue::deserializeForInspector(ScriptState* scriptState) |
{ |
- v8::HandleScope handleScope(scriptState->isolate()); |
+ v8::Isolate* isolate = scriptState->isolate(); |
+ v8::HandleScope handleScope(isolate); |
v8::Context::Scope contextScope(scriptState->context()); |
- return ScriptValue(deserialize(scriptState->isolate())); |
+ return ScriptValue(deserialize(isolate), isolate); |
} |
void SerializedScriptValue::registerMemoryAllocatedWithCurrentScriptContext() |