diff --git a/Libraries/LibWeb/IndexedDB/IDBRequest.cpp b/Libraries/LibWeb/IndexedDB/IDBRequest.cpp index a3187224de3..f331450ae1a 100644 --- a/Libraries/LibWeb/IndexedDB/IDBRequest.cpp +++ b/Libraries/LibWeb/IndexedDB/IDBRequest.cpp @@ -76,7 +76,7 @@ WebIDL::CallbackType* IDBRequest::onerror() } // https://w3c.github.io/IndexedDB/#dom-idbrequest-error -[[nodiscard]] WebIDL::ExceptionOr> IDBRequest::error() const +[[nodiscard]] GC::Ptr IDBRequest::error() const { // 1. If this's done flag is false, then throw an "InvalidStateError" DOMException. if (!m_done) diff --git a/Libraries/LibWeb/IndexedDB/IDBRequest.h b/Libraries/LibWeb/IndexedDB/IDBRequest.h index a1c6509952f..5ba29ca15a9 100644 --- a/Libraries/LibWeb/IndexedDB/IDBRequest.h +++ b/Libraries/LibWeb/IndexedDB/IDBRequest.h @@ -33,7 +33,7 @@ public: [[nodiscard]] String uuid() const { return m_uuid; } [[nodiscard]] Bindings::IDBRequestReadyState ready_state() const; - [[nodiscard]] WebIDL::ExceptionOr> error() const; + [[nodiscard]] GC::Ptr error() const; [[nodiscard]] WebIDL::ExceptionOr result() const; void set_done(bool done) { m_done = done; }