LibWeb/IDB: Implement IDBObjectStore::transaction

This commit is contained in:
stelar7 2025-03-24 20:51:31 +01:00 committed by Jelle Raaijmakers
parent 594ba28c35
commit b0453e044d
Notes: github-actions[bot] 2025-03-27 15:49:25 +00:00
2 changed files with 2 additions and 1 deletions

View file

@ -24,6 +24,7 @@ public:
[[nodiscard]] static GC::Ref<IDBObjectStore> create(JS::Realm&, GC::Ref<ObjectStore>, GC::Ref<IDBTransaction>);
JS::Value key_path() const;
GC::Ref<IDBTransaction> transaction() const { return m_transaction; }
protected:
explicit IDBObjectStore(JS::Realm&, GC::Ref<ObjectStore>, GC::Ref<IDBTransaction>);

View file

@ -7,7 +7,7 @@ interface IDBObjectStore {
[FIXME] attribute DOMString name;
readonly attribute any keyPath;
[FIXME] readonly attribute DOMStringList indexNames;
[FIXME, SameObject] readonly attribute IDBTransaction transaction;
[SameObject] readonly attribute IDBTransaction transaction;
[FIXME] readonly attribute boolean autoIncrement;
[FIXME, NewObject] IDBRequest put(any value, optional any key);