LibWeb/IDB: Initialize the index set in a ObjectStore handle

This commit is contained in:
stelar7 2025-05-02 15:05:37 +02:00 committed by Jelle Raaijmakers
commit 2774068ca0
Notes: github-actions[bot] 2025-05-06 09:17:13 +00:00

View file

@ -26,6 +26,9 @@ IDBObjectStore::IDBObjectStore(JS::Realm& realm, GC::Ref<ObjectStore> store, GC:
, m_name(store->name())
{
transaction->add_to_scope(store);
// An object store handle has an index set, which is initialized to the set of indexes that reference the associated object store when the object store handle is created.
m_indexes = MUST(store->index_set().clone());
}
GC::Ref<IDBObjectStore> IDBObjectStore::create(JS::Realm& realm, GC::Ref<ObjectStore> store, GC::Ref<IDBTransaction> transaction)