Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 1f1cd5696ab7153e6bd40cbee1f753df97d92ac8..7ea6554b32237ae8e6c3a8cb34f9fd7ba375e91b 100644 |
--- a/src/elements.cc |
+++ b/src/elements.cc |
@@ -1842,7 +1842,7 @@ template <typename ElementsAccessorSubclass, typename ElementsKindTraits> |
void ElementsAccessorBase<ElementsAccessorSubclass, ElementsKindTraits>:: |
SetLengthImpl(Handle<JSArray> array, uint32_t length, |
Handle<FixedArrayBase> backing_store) { |
- DCHECK(!JSArray::SetLengthWouldNormalize(array->GetHeap(), length)); |
+ DCHECK(!array->SetLengthWouldNormalize(length)); |
DCHECK(IsFastElementsKind(array->GetElementsKind())); |
uint32_t old_length = 0; |
CHECK(array->length()->ToArrayIndex(&old_length)); |