diff --git a/src/heap.cc b/src/heap.cc index 25d199b189..6d46740b2e 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -3195,6 +3195,7 @@ Object* Heap::AllocateRawFixedArray(int length) { if (length < 0 || length > FixedArray::kMaxLength) { return Failure::OutOfMemoryException(); } + ASSERT(length > 0); // Use the general function if we're forced to always allocate. if (always_allocate()) return AllocateFixedArray(length, TENURED); // Allocate the raw data for a fixed array.