mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
LibWeb/IDB: Change return type of IDBRequest::error()
This commit is contained in:
parent
1d97b0d18e
commit
d801d25c82
Notes:
github-actions[bot]
2025-04-23 18:38:08 +00:00
Author: https://github.com/stelar7
Commit: d801d25c82
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4317
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/kennethmyhra ✅
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue