| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index 2bca797d18a8bc5d33c839e842a0474a33530dbc..e996662ef91beffbd09bfeeacd3fb35cceb0a529 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -6418,7 +6418,7 @@ bool JSReceiver::HasProperty(Handle<JSReceiver> object,
|
| Handle<JSProxy> proxy = Handle<JSProxy>::cast(object);
|
| return JSProxy::HasPropertyWithHandler(proxy, name);
|
| }
|
| - return GetPropertyAttribute(object, name) != ABSENT;
|
| + return GetPropertyAttributes(object, name) != ABSENT;
|
| }
|
|
|
|
|
| @@ -6427,17 +6427,18 @@ bool JSReceiver::HasOwnProperty(Handle<JSReceiver> object, Handle<Name> name) {
|
| Handle<JSProxy> proxy = Handle<JSProxy>::cast(object);
|
| return JSProxy::HasPropertyWithHandler(proxy, name);
|
| }
|
| - return GetOwnPropertyAttribute(object, name) != ABSENT;
|
| + return GetOwnPropertyAttributes(object, name) != ABSENT;
|
| }
|
|
|
|
|
| -PropertyAttributes JSReceiver::GetPropertyAttribute(Handle<JSReceiver> object,
|
| - Handle<Name> key) {
|
| +PropertyAttributes JSReceiver::GetPropertyAttributes(Handle<JSReceiver> object,
|
| + Handle<Name> key) {
|
| uint32_t index;
|
| if (object->IsJSObject() && key->AsArrayIndex(&index)) {
|
| return GetElementAttribute(object, index);
|
| }
|
| - return GetPropertyAttributeWithReceiver(object, object, key);
|
| + LookupIterator it(object, key);
|
| + return GetPropertyAttributes(&it);
|
| }
|
|
|
|
|
|
|