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

This commit is contained in:
stelar7 2025-04-11 10:59:34 +02:00
parent 945a231947
commit 4042e309a6
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)

View file

@ -33,7 +33,7 @@ public:
[[nodiscard]] String uuid() const { return m_uuid; }
[[nodiscard]] Bindings::IDBRequestReadyState ready_state() const;
[[nodiscard]] WebIDL::ExceptionOr<GC::Ptr<WebIDL::DOMException>> error() const;
[[nodiscard]] GC::Ptr<WebIDL::DOMException> error() const;
[[nodiscard]] WebIDL::ExceptionOr<JS::Value> result() const;
void set_done(bool done) { m_done = done; }