Index: Source/bindings/tests/results/V8TestInterfacePython2.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfacePython2.cpp b/Source/bindings/tests/results/V8TestInterfacePython2.cpp |
index 3c709173395a74d9a89375fa29abf6b7efd42c77..2bd9a365e3833efb8453e15948e4fec9dd1bec3e 100644 |
--- a/Source/bindings/tests/results/V8TestInterfacePython2.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfacePython2.cpp |
@@ -80,7 +80,8 @@ template <typename T> void V8_USE(T) { } |
void V8TestInterfacePython2::visitDOMWrapper(void* object, const v8::Persistent<v8::Object>& wrapper, v8::Isolate* isolate) |
{ |
TestInterfacePython2* impl = fromInternalPointer(object); |
- if (Node* owner = impl->ownerNode()) { |
+ // The ownerNode() method may return a reference or a pointer. |
+ if (Node* owner = WTF::getPtr(impl->ownerNode())) { |
Node* root = V8GCController::opaqueRootForGC(owner, isolate); |
isolate->SetReferenceFromGroup(v8::UniqueId(reinterpret_cast<intptr_t>(root)), wrapper); |
return; |