| Index: src/elements.cc
|
| diff --git a/src/elements.cc b/src/elements.cc
|
| index 4a8308128bd6cf9616aaa207cbc6c1896edacddb..049fd291d0e289282b5f5a353e97146e124737f6 100644
|
| --- a/src/elements.cc
|
| +++ b/src/elements.cc
|
| @@ -2170,7 +2170,7 @@ MaybeHandle<Object> ArrayConstructInitializeElements(Handle<JSArray> array,
|
|
|
| // Optimize the case where there is one argument and the argument is a small
|
| // smi.
|
| - if (length > 0 && length < JSObject::kInitialMaxFastElementArray) {
|
| + if (length > 0 && length < JSArray::kInitialMaxFastElementArray) {
|
| ElementsKind elements_kind = array->GetElementsKind();
|
| JSArray::Initialize(array, length, length);
|
|
|
|
|