mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
abortcontroller: implement signal
Signed-off-by: gterzian <2792687+gterzian@users.noreply.github.com>
This commit is contained in:
parent
2a07ef01f5
commit
2c758be4cd
2 changed files with 7 additions and 1 deletions
|
@ -69,4 +69,10 @@ impl AbortControllerMethods<crate::DomTypeHolder> for AbortController {
|
|||
// to signal abort on this with reason if it is given.
|
||||
self.signal_abort(cx, reason, can_gc);
|
||||
}
|
||||
|
||||
/// <https://dom.spec.whatwg.org/#dom-abortcontroller-signal>
|
||||
fn Signal(&self) -> DomRoot<AbortSignal> {
|
||||
// The signal getter steps are to return this’s signal.
|
||||
self.signal.as_rooted()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
interface AbortController {
|
||||
constructor();
|
||||
|
||||
//[SameObject] readonly attribute AbortSignal signal;
|
||||
[SameObject] readonly attribute AbortSignal signal;
|
||||
|
||||
undefined abort(optional any reason);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue