Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index b2ad3d4b80c9dcc387807022e8a5ca0cbd05a581..845fd4558c99054bcd006f0db0a53c53c1612768 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -13560,7 +13560,7 @@ MaybeObject* JSObject::PrepareElementsForSort(uint32_t limit) { |
// Ordering is irrelevant, since we are going to sort anyway. |
SeededNumberDictionary* dict = element_dictionary(); |
if (IsJSArray() || dict->requires_slow_elements() || |
- dict->max_number_key() >= limit) { |
+ dict->max_number_key() >= limit || map()->is_observed()) { |
return PrepareSlowElementsForSort(limit); |
} |
// Convert to fast elements. |