| Index: src/objects-inl.h
|
| diff --git a/src/objects-inl.h b/src/objects-inl.h
|
| index f1309ece199a5d5d2556506cf96d7bddb03cb135..e6c49f34175e4d5a35937401528152fa209058b7 100644
|
| --- a/src/objects-inl.h
|
| +++ b/src/objects-inl.h
|
| @@ -7006,6 +7006,22 @@ Maybe<bool> JSReceiver::HasProperty(Handle<JSReceiver> object,
|
| return JSProxy::HasPropertyWithHandler(proxy, name);
|
| }
|
|
|
| + DescriptorArray* desc;
|
| + PrototypeIterator iter(object->GetIsolate(), *object,
|
| + PrototypeIterator::START_AT_RECEIVER);
|
| + while (!iter.IsAtEnd()) {
|
| + if (iter.GetCurrent()->IsJSObject()) {
|
| + JSReceiver* prototype_object = JSReceiver::cast(iter.GetCurrent());
|
| + desc = prototype_object->map()->instance_descriptors();
|
| + if (!desc->IsEmpty()) {
|
| + int there = desc->SearchWithCache(*name, prototype_object->map());
|
| + if (there != desc->kNotFound)
|
| + return Just(true);
|
| + }
|
| + }
|
| + iter.Advance();
|
| + }
|
| +
|
| Maybe<PropertyAttributes> result = GetPropertyAttributes(object, name);
|
| return result.IsJust() ? Just(result.FromJust() != ABSENT) : Nothing<bool>();
|
| }
|
|
|