Index: src/objects-inl.h |
diff --git a/src/objects-inl.h b/src/objects-inl.h |
index 68591ec9416fa327119a6386c6d0c2188595c90c..4f2bd7a29ce27cd6cb8c16e41c1ecdbc120c0024 100644 |
--- a/src/objects-inl.h |
+++ b/src/objects-inl.h |
@@ -7259,6 +7259,16 @@ MaybeHandle<Object> Object::GetPropertyOrElement(Handle<Object> object, |
} |
+MaybeHandle<Object> Object::GetPropertyOrElement(Handle<JSReceiver> holder, |
+ Handle<Name> name, |
+ Handle<Object> receiver, |
+ LanguageMode language_mode) { |
+ LookupIterator it = LookupIterator::PropertyOrElement( |
+ name->GetIsolate(), receiver, name, holder); |
+ return GetProperty(&it, language_mode); |
+} |
+ |
+ |
Maybe<bool> JSReceiver::HasProperty(Handle<JSReceiver> object, |
Handle<Name> name) { |
// Call the "has" trap on proxies. |