LibWeb/IDB: Change return type of IDBRequest::error()

This commit is contained in:
stelar7 2025-04-11 10:59:34 +02:00 committed by Andrew Kaster
parent 1d97b0d18e
commit d801d25c82
Notes: github-actions[bot] 2025-04-23 18:38:08 +00:00
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ WebIDL::CallbackType* IDBRequest::onerror()
}
// https://w3c.github.io/IndexedDB/#dom-idbrequest-error
[[nodiscard]] WebIDL::ExceptionOr<GC::Ptr<WebIDL::DOMException>> IDBRequest::error() const
[[nodiscard]] GC::Ptr<WebIDL::DOMException> IDBRequest::error() const
{
// 1. If this's done flag is false, then throw an "InvalidStateError" DOMException.
if (!m_done)