mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibWeb/IDB: Change return type of IDBRequest::error()
This commit is contained in:
parent
945a231947
commit
4042e309a6
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Add table
Reference in a new issue