LibWeb/IDB: Implement IDBCursor::advance

This commit is contained in:
stelar7
2025-05-13 09:54:00 +02:00
committed by Andrew Kaster
parent 82d17fa17e
commit 6afa2c8eee
Notes: github-actions[bot] 2025-05-13 16:50:15 +00:00
3 changed files with 48 additions and 1 deletions

View File

@@ -45,6 +45,7 @@ public:
[[nodiscard]] JS::Value primary_key() const;
[[nodiscard]] GC::Ptr<IDBRequest> request() { return m_request; }
WebIDL::ExceptionOr<void> advance(WebIDL::UnsignedLong);
WebIDL::ExceptionOr<void> continue_(JS::Value);
[[nodiscard]] JS::Value value() { return m_value.value_or(JS::js_undefined()); }