diff options
author | crowlKats <13135287+crowlKats@users.noreply.github.com> | 2021-03-27 15:49:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-27 15:49:57 +0100 |
commit | b11249647fa14e482881fd22446dbd8b0cbac27c (patch) | |
tree | 36e41a2b72673864d511f401833d8340c74a0049 /op_crates/web/03_abort_signal.js | |
parent | 940b3a26bde813c43cc156141c2366cacd827e77 (diff) |
fix: update wpt + align AbortController (#9907)
Diffstat (limited to 'op_crates/web/03_abort_signal.js')
-rw-r--r-- | op_crates/web/03_abort_signal.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/op_crates/web/03_abort_signal.js b/op_crates/web/03_abort_signal.js index 3090513eb..693b5342a 100644 --- a/op_crates/web/03_abort_signal.js +++ b/op_crates/web/03_abort_signal.js @@ -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); } |