diff options
Diffstat (limited to 'op_crates/web/03_abort_signal.js')
-rw-r--r-- | op_crates/web/03_abort_signal.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/op_crates/web/03_abort_signal.js b/op_crates/web/03_abort_signal.js index 693b5342a..b87a56ce3 100644 --- a/op_crates/web/03_abort_signal.js +++ b/op_crates/web/03_abort_signal.js @@ -2,6 +2,7 @@ "use strict"; ((window) => { + const webidl = window.__bootstrap.webidl; const { setIsTrusted } = window.__bootstrap.event; const add = Symbol("add"); @@ -47,6 +48,7 @@ throw new TypeError("Illegal constructor."); } super(); + this[webidl.brand] = webidl.brand; } get aborted() { @@ -111,6 +113,11 @@ }); } + webidl.converters["AbortSignal"] = webidl.createInterfaceConverter( + "AbortSignal", + AbortSignal, + ); + window.AbortSignal = AbortSignal; window.AbortController = AbortController; window.__bootstrap = window.__bootstrap || {}; |