fix: update wpt + align AbortController (#9907)

This commit is contained in:
crowlKats 2021-03-27 15:49:57 +01:00 committed by GitHub
parent 940b3a26bd
commit b11249647f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 11 deletions

View file

@ -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);
}