mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb/IDB: Implement IDBObjectStore::name
This commit is contained in:
committed by
Jelle Raaijmakers
parent
2e02b62126
commit
3879391fa6
Notes:
github-actions[bot]
2025-03-27 15:49:10 +00:00
Author: https://github.com/stelar7 Commit: https://github.com/LadybirdBrowser/ladybird/commit/3879391fa6a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4077 Reviewed-by: https://github.com/AtkinsSJ Reviewed-by: https://github.com/gmta ✅
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user