diff options
Diffstat (limited to 'Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp b/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp index f303128e0..d869dc3b6 100644 --- a/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp +++ b/Source/WebCore/bindings/v8/custom/V8NamedNodeMapCustom.cpp @@ -51,7 +51,7 @@ v8::Handle<v8::Value> V8NamedNodeMap::indexedPropertyGetter(uint32_t index, cons if (!result) return notHandledByInterceptor(); - return toV8(result.release()); + return toV8(result.release(), info.GetIsolate()); } v8::Handle<v8::Value> V8NamedNodeMap::namedPropertyGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info) @@ -68,18 +68,18 @@ v8::Handle<v8::Value> V8NamedNodeMap::namedPropertyGetter(v8::Local<v8::String> if (!result) return notHandledByInterceptor(); - return toV8(result.release()); + return toV8(result.release(), info.GetIsolate()); } -v8::Handle<v8::Value> toV8(NamedNodeMap* impl) +v8::Handle<v8::Value> toV8(NamedNodeMap* impl, v8::Isolate* isolate) { if (!impl) return v8::Null(); - v8::Handle<v8::Object> wrapper = V8NamedNodeMap::wrap(impl); + v8::Handle<v8::Object> wrapper = V8NamedNodeMap::wrap(impl, isolate); // Add a hidden reference from named node map to its owner node. Element* element = impl->element(); if (!wrapper.IsEmpty() && element) - wrapper->SetHiddenValue(V8HiddenPropertyName::ownerNode(), toV8(element)); + wrapper->SetHiddenValue(V8HiddenPropertyName::ownerNode(), toV8(element, isolate)); return wrapper; } |