mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibWeb/IDB: Initialize the index set in a ObjectStore handle
This commit is contained in:
parent
0ed71d87ca
commit
2774068ca0
Notes:
github-actions[bot]
2025-05-06 09:17:13 +00:00
Author: https://github.com/stelar7
Commit: 2774068ca0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4524
Reviewed-by: https://github.com/gmta ✅
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue