| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index e137e3f606b3ab3ceea293aa24151fbe3252197a..68e63f94e3b9db1f10cedfa66b6e3e0214e45c0f 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -13901,10 +13901,11 @@ int JSObject::GetOwnPropertyNames(FixedArray* storage, int index,
|
| int JSObject::NumberOfOwnElements(PropertyAttributes filter) {
|
| // Fast case for objects with no elements.
|
| if (!IsJSValue() && HasFastElements()) {
|
| - uint32_t length = IsJSArray() ?
|
| - static_cast<uint32_t>(
|
| - Smi::cast(JSArray::cast(this)->length())->value()) :
|
| - static_cast<uint32_t>(FixedArray::cast(elements())->length());
|
| + uint32_t length =
|
| + IsJSArray()
|
| + ? static_cast<uint32_t>(
|
| + Smi::cast(JSArray::cast(this)->length())->value())
|
| + : static_cast<uint32_t>(FixedArrayBase::cast(elements())->length());
|
| if (length == 0) return 0;
|
| }
|
| // Compute the number of enumerable elements.
|
|
|