LibWeb/IDB: Fix a bug where the KeyGenerator was not incremented

This commit is contained in:
stelar7 2025-04-25 18:12:28 +02:00 committed by Jelle Raaijmakers
commit 577f799240
Notes: github-actions[bot] 2025-04-28 09:32:51 +00:00
4 changed files with 8 additions and 7 deletions

View file

@ -31,7 +31,7 @@ public:
// https://w3c.github.io/IndexedDB/#dom-idbobjectstore-autoincrement
// The autoIncrement getter steps are to return true if thiss object store has a key generator, and false otherwise.
bool auto_increment() const { return m_store->key_generator().has_value(); }
bool auto_increment() const { return m_store->uses_a_key_generator(); }
JS::Value key_path() const;
String name() const { return m_name; }
WebIDL::ExceptionOr<void> set_name(String const& value);