LibWeb/IDB: Implement IDBCursor::delete

This commit is contained in:
stelar7 2025-05-13 10:23:52 +02:00 committed by Andrew Kaster
commit 9c51326fcb
Notes: github-actions[bot] 2025-05-13 16:49:53 +00:00
3 changed files with 41 additions and 1 deletions

View file

@ -50,6 +50,7 @@ public:
WebIDL::ExceptionOr<void> continue_primary_key(JS::Value, JS::Value);
WebIDL::ExceptionOr<GC::Ref<IDBRequest>> update(JS::Value);
WebIDL::ExceptionOr<GC::Ref<IDBRequest>> delete_();
[[nodiscard]] JS::Value value() { return m_value.value_or(JS::js_undefined()); }
[[nodiscard]] GC::Ref<IDBKeyRange> range() { return m_range; }