diff options
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/web/02_event.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/web/02_event.js b/extensions/web/02_event.js index 6b2cc2c04..a8dd95dbd 100644 --- a/extensions/web/02_event.js +++ b/extensions/web/02_event.js @@ -929,7 +929,10 @@ this.removeEventListener(type, callback, options); }); } + } else if (options?.signal === null) { + throw new TypeError("signal must be non-null"); } + ArrayPrototypePush(listeners[type], { callback, options }); } |