script: Add stub interface for AbortController. (#34519)

Signed-off-by: Josh Matthews <josh@joshmatthews.net>
Co-authored-by: syvb <me@iter.ca>
This commit is contained in:
Josh Matthews 2024-12-10 02:31:04 -05:00 committed by GitHub
parent 2f64dde623
commit bc2def0582
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,13 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
// https://dom.spec.whatwg.org/#interface-abortcontroller
[Exposed=*, Pref="dom.abort_controller.enabled"]
interface AbortController {
constructor();
//[SameObject] readonly attribute AbortSignal signal;
undefined abort(optional any reason);
};