mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 02:29:21 +00:00
LibWeb: Implement indexed property support for HTML::Storage
We only supported named properties on Storage, and as a result `localStorage[0]` would be disconnected from the Storage's backing map. Fixes at least 20 subtests in WPT in /webstorage.
This commit is contained in:
parent
999c591e83
commit
4c189166f4
Notes:
github-actions[bot]
2024-10-18 21:11:13 +00:00
Author: https://github.com/gmta
Commit: 4c189166f4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1846
4 changed files with 42 additions and 0 deletions
|
@ -38,9 +38,11 @@ private:
|
|||
virtual void initialize(JS::Realm&) override;
|
||||
|
||||
// ^PlatformObject
|
||||
virtual Optional<JS::Value> item_value(size_t index) const override;
|
||||
virtual JS::Value named_item_value(FlyString const&) const override;
|
||||
virtual WebIDL::ExceptionOr<DidDeletionFail> delete_value(String const&) override;
|
||||
virtual Vector<FlyString> supported_property_names() const override;
|
||||
virtual WebIDL::ExceptionOr<void> set_value_of_indexed_property(u32, JS::Value) override;
|
||||
virtual WebIDL::ExceptionOr<void> set_value_of_named_property(String const& key, JS::Value value) override;
|
||||
|
||||
void reorder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue