Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index f7d0fd5b65fc5fa923c7dfbccf9cda42128a6795..93c6661496f8976a4b964fb9337a58244608838b 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -617,7 +617,7 @@ Maybe<PropertyAttributes> JSObject::GetElementAttributesWithFailedAccessCheck( |
FindIndexedAllCanReadHolder(isolate, holder, where_to_start); |
if (!all_can_read_holder.ToHandle(&holder)) break; |
auto result = |
- JSObject::GetElementAttributeFromInterceptor(object, receiver, index); |
+ JSObject::GetElementAttributeFromInterceptor(holder, receiver, index); |
if (isolate->has_scheduled_exception()) break; |
if (result.IsJust() && result.FromJust() != ABSENT) return result; |
where_to_start = PrototypeIterator::START_AT_PROTOTYPE; |