| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index c764b33e6793ee169d0866318e19483a888e4b08..131d031dcdb8e0a36aee15c518ab53c3b2211f9a 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -11279,9 +11279,9 @@ void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) {
|
| }
|
|
|
|
|
| -void JSArray::Expand(int required_size) {
|
| - GetIsolate()->factory()->SetElementsCapacityAndLength(
|
| - Handle<JSArray>(this), required_size, required_size);
|
| +void JSArray::Expand(Handle<JSArray> array, int required_size) {
|
| + ElementsAccessor* accessor = array->GetElementsAccessor();
|
| + accessor->SetCapacityAndLength(array, required_size, required_size);
|
| }
|
|
|
|
|
|
|