1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

LibJS: run clang-format on all the files

This commit is contained in:
Emanuele Torre 2020-05-04 13:30:40 +02:00 committed by Andreas Kling
parent 30519c22f6
commit 8bd9f7e50e
8 changed files with 25 additions and 25 deletions

View file

@ -435,7 +435,7 @@ bool Object::has_own_property(const FlyString& property_name) const
i32 property_index = property_name.to_int(ok);
if (ok && property_index >= 0) {
if (is_string_object())
return property_index < (i32)static_cast<const StringObject*>(this)->primitive_string().string().length();
return property_index < (i32) static_cast<const StringObject*>(this)->primitive_string().string().length();
if (static_cast<size_t>(property_index) >= m_elements.size())
return false;
return !m_elements[property_index].is_empty();