Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index f0e1414de4aeebe9ef9089ecd2b1cc5fc6f1b682..4cb50a461d4a69790e70d2d5d5795e874fe7b99b 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -800,7 +800,7 @@ class FastElementsAccessor |
} |
} else { |
// Otherwise, fill the unused tail with holes. |
- int old_length = FastD2I(array->length()->Number()); |
+ int old_length = FastD2IChecked(array->length()->Number()); |
for (int i = length; i < old_length; i++) { |
backing_store->set_the_hole(i); |
} |