Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index cd86a43988d98e2f3cab15831d2e6144f28ae886..4d001b8052c61fe8c3b97921983e0cf217410792 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -5914,9 +5914,9 @@ bool JSReceiver::IsSimpleEnum() { |
JSObject* curr = JSObject::cast(o); |
int enum_length = curr->map()->EnumLength(); |
if (enum_length == kInvalidEnumCacheSentinel) return false; |
+ if (curr->IsAccessCheckNeeded()) return false; |
ASSERT(!curr->HasNamedInterceptor()); |
ASSERT(!curr->HasIndexedInterceptor()); |
- ASSERT(!curr->IsAccessCheckNeeded()); |
if (curr->NumberOfEnumElements() > 0) return false; |
if (curr != this && enum_length != 0) return false; |
} |