Files
serenity/Userland/Libraries/LibWeb/Bindings/PlatformObject.cpp
Shannon Booth 303e13046a Bindings: Avoid second property index lookup for platform objects
While conceptually is_supported_property_index is a cheap index lookup,
it is not currently cheap for an container such as HTMLAllCollection
that is operating on an uncached collection. Instead - just do the
lookup once. It also happens to look a little nicer to not blindly
dereference an optional.

(cherry picked from commit 22969a8e929eae00a45989acae99eb5a97269358)
2024-07-28 14:12:04 -04:00

24 KiB