Index: src/ast.cc |
diff --git a/src/ast.cc b/src/ast.cc |
index c9e4c0f21974a8983024e4bc0b4f1415cccc87e1..31cfee3cac72783cac74aab5d18f1f149ca2b187 100644 |
--- a/src/ast.cc |
+++ b/src/ast.cc |
@@ -557,8 +557,7 @@ void ArrayLiteral::BuildConstantElements(Isolate* isolate) { |
} |
if (array_index != values()->length()) { |
- JSArray::SetElementsLength( |
- array, handle(Smi::FromInt(array_index), isolate)).Assert(); |
+ JSArray::SetLength(array, array_index); |
} |
Handle<FixedArrayBase> element_values(array->elements()); |