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