1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +00:00

LibWeb: Port named_item_value from DeprecatedFlyString

This commit is contained in:
Shannon Booth 2023-10-08 13:16:50 +13:00 committed by Tim Flynn
parent c7cd6f2bef
commit b37aab1277
19 changed files with 33 additions and 36 deletions

View file

@ -20,7 +20,7 @@ public:
void refresh() const;
size_t length() const;
JS::GCPtr<Plugin> item(u32 index) const;
JS::GCPtr<Plugin> named_item(String const& name) const;
JS::GCPtr<Plugin> named_item(FlyString const& name) const;
private:
PluginArray(JS::Realm&);
@ -30,7 +30,7 @@ private:
// ^Bindings::LegacyPlatformObject
virtual Vector<DeprecatedString> supported_property_names() const override;
virtual WebIDL::ExceptionOr<JS::Value> item_value(size_t index) const override;
virtual WebIDL::ExceptionOr<JS::Value> named_item_value(DeprecatedFlyString const& name) const override;
virtual WebIDL::ExceptionOr<JS::Value> named_item_value(FlyString const& name) const override;
virtual bool is_supported_property_index(u32) const override;
virtual bool supports_indexed_properties() const override { return true; }