Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 4d879aca0b210b45fb0d66087a26a8f5a1903555..2a56797c2cce3f63921d5978cdd4bf69906515a1 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -8372,7 +8372,7 @@ MaybeObject* JSArray::Initialize(int capacity) { |
void JSArray::Expand(int required_size) { |
GetIsolate()->factory()->SetElementsCapacityAndLength( |
- Handle<JSArray>(this), required_size, Smi::cast(length())->value()); |
+ Handle<JSArray>(this), required_size, required_size); |
} |