1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06:37:44 +00:00

LibWeb: Implement AbortSignal.throwIfAborted

See: cfe2f1e
This commit is contained in:
Luke Wilde 2021-12-10 19:48:51 +00:00 committed by Idan Horowitz
parent 64040c136e
commit 1a5bf15b4d
3 changed files with 19 additions and 0 deletions

View file

@ -53,6 +53,8 @@ public:
// https://dom.spec.whatwg.org/#dom-abortsignal-reason
JS::Value reason() const { return m_abort_reason; }
JS::ThrowCompletionOr<void> throw_if_aborted() const;
void visit_edges(JS::Cell::Visitor&);
// ^EventTarget