mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibWeb: Add support for AbortSignal.reason
This commit is contained in:
parent
4dbda2d5b4
commit
64040c136e
6 changed files with 40 additions and 14 deletions
|
@ -20,9 +20,10 @@ AbortController::~AbortController()
|
|||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-abortcontroller-abort
|
||||
void AbortController::abort()
|
||||
void AbortController::abort(JS::Value reason)
|
||||
{
|
||||
m_signal->signal_abort();
|
||||
// The abort(reason) method steps are to signal abort on this’s signal with reason if it is given.
|
||||
m_signal->signal_abort(reason);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue