Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4832f19e4d0ed802c804d525bfad5a87578fd68c..632064397bdec08907fb0a76016c3a9cd790d73e 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -3812,7 +3812,7 @@ MaybeHandle<Object> JSObject::SetOwnPropertyIgnoreAttributes( |
PropertyAttributes attributes, |
ExecutableAccessorInfoHandling handling) { |
DCHECK(!value->IsTheHole()); |
- LookupIterator it(object, name, LookupIterator::HIDDEN_SKIP_INTERCEPTOR); |
+ LookupIterator it(object, name, LookupIterator::OWN_SKIP_INTERCEPTOR); |
bool is_observed = object->map()->is_observed() && |
*name != it.isolate()->heap()->hidden_string(); |
for (; it.IsFound(); it.Next()) { |
@@ -3831,7 +3831,6 @@ MaybeHandle<Object> JSObject::SetOwnPropertyIgnoreAttributes( |
case LookupIterator::PROPERTY: { |
if (!it.HasProperty()) break; |
- if (it.HolderIsNonGlobalHiddenPrototype()) break; |
PropertyDetails details = it.property_details(); |
Handle<Object> old_value = it.isolate()->factory()->the_hole_value(); |
switch (it.property_kind()) { |