From 8cd927541651acbbdd136fff6c3927d929e7fda9 Mon Sep 17 00:00:00 2001 From: Tim Ledbetter Date: Fri, 16 May 2025 04:14:09 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"LibJS:=20Ensure=20keys=20vector=20cap?= =?UTF-8?q?acity=20in=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Object::internal_own_property_keys" This reverts commit 27ba216e3fd869e0a3bf1d78c3693e5c7993369c. --- Libraries/LibJS/Runtime/Object.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Libraries/LibJS/Runtime/Object.cpp b/Libraries/LibJS/Runtime/Object.cpp index fb71d07ef9b..ae7cc8bac95 100644 --- a/Libraries/LibJS/Runtime/Object.cpp +++ b/Libraries/LibJS/Runtime/Object.cpp @@ -1112,7 +1112,6 @@ ThrowCompletionOr> Object::internal_own_property_keys() cons { // 1. Let keys be a new empty List. Vector 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) {