Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index c11f8975ab37a90134ef402c8dcbdd740c4136a1..49c39e5c3096268aac75da254052658221b388b6 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -9452,7 +9452,8 @@ bool DescriptorArray::IsEqualUpTo(DescriptorArray* desc, int nof_descriptors) { |
} |
PropertyDetails details = GetDetails(i); |
PropertyDetails other_details = desc->GetDetails(i); |
- if (details.type() != other_details.type() || |
+ if (details.kind() != other_details.kind() || |
+ details.location() != other_details.location() || |
!details.representation().Equals(other_details.representation())) { |
return false; |
} |