Skip to content

Commit

Permalink
LibJS: Format IndexedProperties.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
alimpfard authored and awesomekling committed Sep 8, 2020
1 parent 0c2d36d commit 9a00699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Libraries/LibJS/Runtime/IndexedProperties.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,15 @@ void IndexedProperties::insert(u32 index, Value value, PropertyAttributes attrib
m_storage->insert(index, value, attributes);
}

ValueAndAttributes IndexedProperties::take_first(Object *this_object)
ValueAndAttributes IndexedProperties::take_first(Object* this_object)
{
auto first = m_storage->take_first();
if (first.value.is_accessor())
return { first.value.as_accessor().call_getter(this_object), first.attributes };
return first;
}

ValueAndAttributes IndexedProperties::take_last(Object *this_object)
ValueAndAttributes IndexedProperties::take_last(Object* this_object)
{
auto last = m_storage->take_last();
if (last.value.is_accessor())
Expand Down

0 comments on commit 9a00699

Please sign in to comment.