mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 13:44:47 +00:00
fix: update wpt + align AbortController (#9907)
This commit is contained in:
parent
940b3a26bd
commit
b11249647f
3 changed files with 21 additions and 11 deletions
|
@ -14,6 +14,12 @@
|
|||
#aborted = false;
|
||||
#abortAlgorithms = new Set();
|
||||
|
||||
static abort() {
|
||||
const signal = new AbortSignal(illegalConstructorKey);
|
||||
signal[signalAbort]();
|
||||
return signal;
|
||||
}
|
||||
|
||||
[add](algorithm) {
|
||||
this.#abortAlgorithms.add(algorithm);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue