Revert "LibJS: Ensure keys vector capacity in…

Object::internal_own_property_keys"

This reverts commit 27ba216e3f.
This commit is contained in:
Tim Ledbetter 2025-05-16 04:14:09 +01:00 committed by Tim Ledbetter
commit 8cd9275416
Notes: github-actions[bot] 2025-05-16 05:34:13 +00:00

View file

@ -1112,7 +1112,6 @@ ThrowCompletionOr<Vector<PropertyKey>> Object::internal_own_property_keys() cons
{
// 1. Let keys be a new empty List.
Vector<PropertyKey> keys;
keys.ensure_capacity(m_indexed_properties.real_size() + shape().property_count());
// 2. For each own property key P of O such that P is an array index, in ascending numeric index order, do
for (auto const& entry : m_indexed_properties) {