Index: src/lookup-inl.h |
diff --git a/src/lookup-inl.h b/src/lookup-inl.h |
index f06ef674397fc5d6fb3fa7a0631e04ee9d9ab48d..e169e288caf7b0d4af05ffc60b3665cc7dd3344d 100644 |
--- a/src/lookup-inl.h |
+++ b/src/lookup-inl.h |
@@ -66,6 +66,10 @@ LookupIterator::State LookupIterator::LookupInHolder(Map* const map, |
PropertyCellType::kNoCell); |
} else { |
JSObject* js_object = JSObject::cast(holder); |
+ if (js_object->elements() == isolate()->heap()->empty_fixed_array()) { |
+ return NOT_FOUND; |
+ } |
+ |
ElementsAccessor* accessor = js_object->GetElementsAccessor(); |
FixedArrayBase* backing_store = js_object->elements(); |
number_ = accessor->GetIndexForKey(backing_store, index_); |