mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-15 21:41:58 +00:00
LibWeb/IDB: Resolve FIXME regarding removing from indecies
This commit is contained in:
parent
46ecf239c4
commit
13674c1b32
Notes:
github-actions[bot]
2025-05-14 15:18:50 +00:00
Author: https://github.com/stelar7
Commit: 13674c1b32
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4727
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/shannonbooth
3 changed files with 12 additions and 1 deletions
|
@ -1318,7 +1318,10 @@ JS::Value delete_records_from_an_object_store(GC::Ref<ObjectStore> store, GC::Re
|
|||
// 1. Remove all records, if any, from store’s list of records with key in range.
|
||||
store->remove_records_in_range(range);
|
||||
|
||||
// FIXME: 2. For each index which references store, remove every record from index’s list of records whose value is in range, if any such records exist.
|
||||
// 2. For each index which references store, remove every record from index’s list of records whose value is in range, if any such records exist.
|
||||
for (auto const& [name, index] : store->index_set()) {
|
||||
index->remove_records_with_value_in_range(range);
|
||||
}
|
||||
|
||||
// 3. Return undefined.
|
||||
return JS::js_undefined();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue