Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index c1f072145094776375392053f929bc7f798c5713..cb1222e56e39ab5cdf1658f344f0d1ed8fb81e34 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8742,7 +8742,8 @@ static Maybe<bool> GetKeysFromJSObject(Isolate* isolate, |
bool cache_enum_length = |
((object->map()->GetConstructor() != *arguments_function) && |
!object->IsJSValue() && !object->IsAccessCheckNeeded() && |
- !object->HasNamedInterceptor() && !object->HasIndexedInterceptor()); |
+ !object->HasNamedInterceptor() && !object->HasIndexedInterceptor() && |
+ !object->map()->has_hidden_prototype()); |
// Compute the property keys and cache them if possible. |
Handle<FixedArray> enum_keys = |
JSObject::GetEnumPropertyKeys(object, cache_enum_length); |