LibWeb/IDB: Implement IDBObjectStore::add_or_put

This commit is contained in:
stelar7 2025-04-11 11:40:53 +02:00 committed by Andrew Kaster
commit a06cec7a3c
Notes: github-actions[bot] 2025-04-23 18:37:02 +00:00
3 changed files with 99 additions and 21 deletions

View file

@ -44,6 +44,8 @@ public:
WebIDL::ExceptionOr<GC::Ref<IDBIndex>> index(String const&);
WebIDL::ExceptionOr<void> delete_index(String const&);
[[nodiscard]] WebIDL::ExceptionOr<GC::Ref<IDBRequest>> add_or_put(GC::Ref<IDBObjectStore>, JS::Value, Optional<JS::Value> const&, bool);
protected:
explicit IDBObjectStore(JS::Realm&, GC::Ref<ObjectStore>, GC::Ref<IDBTransaction>);
virtual void initialize(JS::Realm&) override;