| Index: src/objects.cc | 
| diff --git a/src/objects.cc b/src/objects.cc | 
| index b30793062158debb05fb64424e2bd2d9568ee17b..a526e8f635d21b7c5e8f9c1b301826289249cd88 100644 | 
| --- a/src/objects.cc | 
| +++ b/src/objects.cc | 
| @@ -4088,15 +4088,16 @@ MaybeObject* JSObject::PreventExtensions() { | 
|  | 
|  | 
| // Tests for the fast common case for property enumeration: | 
| -// - This object and all prototypes has an enum cache (which means that it has | 
| -//   no interceptors and needs no access checks). | 
| +// - This object and all prototypes has an enum cache (which means that | 
| +//   it is no proxy, has no interceptors and needs no access checks). | 
| // - This object has no elements. | 
| // - No prototype has enumerable properties/elements. | 
| -bool JSObject::IsSimpleEnum() { | 
| +bool JSReceiver::IsSimpleEnum() { | 
| Heap* heap = GetHeap(); | 
| for (Object* o = this; | 
| o != heap->null_value(); | 
| o = JSObject::cast(o)->GetPrototype()) { | 
| +    if (!o->IsJSObject()) return false; | 
| JSObject* curr = JSObject::cast(o); | 
| if (!curr->map()->instance_descriptors()->HasEnumCache()) return false; | 
| ASSERT(!curr->HasNamedInterceptor()); | 
|  |