| Index: src/heap/mark-compact.cc
|
| diff --git a/src/heap/mark-compact.cc b/src/heap/mark-compact.cc
|
| index 075a2d5a7de38208ee633e218b91d19281469d4a..001674771287445d8ea78296a94876f34800d8f7 100644
|
| --- a/src/heap/mark-compact.cc
|
| +++ b/src/heap/mark-compact.cc
|
| @@ -2497,7 +2497,8 @@ void MarkCompactCollector::TrimEnumCache(Map* map,
|
| DescriptorArray* descriptors) {
|
| int live_enum = map->EnumLength();
|
| if (live_enum == kInvalidEnumCacheSentinel) {
|
| - live_enum = map->NumberOfDescribedProperties(OWN_DESCRIPTORS, DONT_ENUM);
|
| + live_enum =
|
| + map->NumberOfDescribedProperties(OWN_DESCRIPTORS, ENUMERABLE_STRINGS);
|
| }
|
| if (live_enum == 0) return descriptors->ClearEnumCache();
|
|
|
|
|