Index: src/elements.cc |
diff --git a/src/elements.cc b/src/elements.cc |
index 6371fd727a6ece56a5fbd3011d5547c4f25c6c0e..8323c8950f890e373e2e385631782f41daf9460a 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); |