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
commit 1a5bf15b4d
Notes: sideshowbarker 2024-07-17 23:00:12 +09:00
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