LibWeb: Properly implement IDBRequest::error()

This commit is contained in:
stelar7 2024-11-07 20:20:27 +01:00 committed by Jelle Raaijmakers
commit 204d776cdb
Notes: github-actions[bot] 2024-11-26 13:52:26 +00:00
2 changed files with 12 additions and 1 deletions

View file

@ -23,12 +23,12 @@ public:
virtual ~IDBRequest() override;
[[nodiscard]] JS::Value result() const { return m_result; }
[[nodiscard]] GC::Ptr<WebIDL::DOMException> error() const { return m_error; }
[[nodiscard]] bool done() const { return m_done; }
[[nodiscard]] bool processed() const { return m_processed; }
[[nodiscard]] IDBRequestSource source() const { return m_source; }
[[nodiscard]] Bindings::IDBRequestReadyState ready_state() const;
[[nodiscard]] WebIDL::ExceptionOr<GC::Ptr<WebIDL::DOMException>> error() const;
void set_done(bool done) { m_done = done; }
void set_result(JS::Value result) { m_result = result; }