Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index f6a1697829eb52ea99a36df53eca5befe61bd0ad..ba77de77ce7b4b97f195f4631e6a0e2fa284b102 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -844,7 +844,8 @@ class FastDoubleElementsAccessor |
JSObject* holder, |
uint32_t key, |
FixedDoubleArray* backing_store) { |
- return !backing_store->is_the_hole(key); |
+ return key < static_cast<uint32_t>(backing_store->length()) && |
+ !backing_store->is_the_hole(key); |
} |
}; |