mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb/IDB: Implement IDBObjectStore::name
This commit is contained in:
parent
2e02b62126
commit
3879391fa6
Notes:
github-actions[bot]
2025-03-27 15:49:10 +00:00
Author: https://github.com/stelar7
Commit: 3879391fa6
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/gmta ✅
6 changed files with 80 additions and 13 deletions
|
@ -132,8 +132,7 @@ WebIDL::ExceptionOr<GC::Ref<IDBObjectStore>> IDBDatabase::create_object_store(St
|
|||
// Set the created object store's name to name.
|
||||
// If autoIncrement is true, then the created object store uses a key generator.
|
||||
// If keyPath is not null, set the created object store's key path to keyPath.
|
||||
auto object_store = ObjectStore::create(realm, name, auto_increment, key_path);
|
||||
database->add_object_store(object_store);
|
||||
auto object_store = ObjectStore::create(realm, database, name, auto_increment, key_path);
|
||||
|
||||
// 10. Return a new object store handle associated with store and transaction.
|
||||
return IDBObjectStore::create(realm, object_store, *transaction);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue