Index: Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
diff --git a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
index 7559f4af5848163421ebe268621d142695a4937e..51b25c9c08150a9919d0278e80cdd6ccac219525 100644 |
--- a/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
+++ b/Source/bindings/v8/custom/V8InjectedScriptHostCustom.cpp |
@@ -63,7 +63,7 @@ namespace WebCore { |
Node* InjectedScriptHost::scriptValueAsNode(ScriptValue value) |
{ |
- v8::HandleScope scope(v8::Isolate::GetCurrent()); |
+ v8::HandleScope scope(value.isolate()); |
marja
2013/09/18 12:36:28
What's this? I don't see ScriptValue::Isolate... d
marja
2013/09/18 12:37:45
Ahh, you just landed ScriptValue::m_isolate. Hmm,
do-not-use
2013/09/18 12:39:49
Good question. At least no one complained yet :)
I
|
if (!value.isObject() || value.isNull()) |
return 0; |
return V8Node::toNative(v8::Handle<v8::Object>::Cast(value.v8Value())); |