1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 10:38:13 +00:00

LibJS+LibWeb: Devirtualize may_interfere_with_indexed_property_access()

This commit is contained in:
iliadsh 2023-11-09 07:29:52 +00:00 committed by Andreas Kling
parent 7f501d4d8a
commit 89da731aa6
29 changed files with 51 additions and 61 deletions

View file

@ -2490,8 +2490,6 @@ private:
virtual JS::ThrowCompletionOr<bool> internal_set_prototype_of(JS::Object* prototype) override;
virtual JS::ThrowCompletionOr<bool> internal_prevent_extensions() override;
virtual bool may_interfere_with_indexed_property_access() const final { return true; }
JS::Realm& m_realm; // [[Realm]]
};
)~~~");
@ -2511,7 +2509,7 @@ static void generate_named_properties_object_definitions(IDL::Interface const& i
#include <LibWeb/WebIDL/AbstractOperations.h>
@named_properties_class@::@named_properties_class@(JS::Realm& realm)
: JS::Object(realm, nullptr)
: JS::Object(realm, nullptr, MayInterfereWithIndexedPropertyAccess::Yes)
, m_realm(realm)
{
}