mirror of
https://github.com/denoland/deno.git
synced 2024-12-22 15:24:46 -05:00
fix(extensiosn/web): AddEventListenerOptions.signal shouldn't be nullable (#11348)
This commit is contained in:
parent
5bf753713c
commit
b3f22d3fdd
2 changed files with 4 additions and 3 deletions
|
@ -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 });
|
||||
}
|
||||
|
||||
|
|
|
@ -1977,9 +1977,7 @@
|
|||
"event.any.html": true
|
||||
},
|
||||
"events": {
|
||||
"AddEventListenerOptions-signal.any.html": [
|
||||
"Passing null as the signal should throw"
|
||||
],
|
||||
"AddEventListenerOptions-signal.any.html": true,
|
||||
"Event-isTrusted.any.html": true,
|
||||
"EventTarget-constructible.any.html": true,
|
||||
"Event-constructors.any.html": [
|
||||
|
|
Loading…
Reference in a new issue