mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
feat(ext/web): Add AbortSignal.timeout()
(#13687)
This commit is contained in:
parent
5eb0e4c2df
commit
9f494dc405
5 changed files with 126 additions and 10 deletions
|
@ -868,6 +868,10 @@
|
|||
return target?.[eventTargetData]?.mode ?? null;
|
||||
}
|
||||
|
||||
function listenerCount(target, type) {
|
||||
return getListeners(target)?.[type]?.length ?? 0;
|
||||
}
|
||||
|
||||
function getDefaultTargetData() {
|
||||
return {
|
||||
assignedSlot: false,
|
||||
|
@ -1326,6 +1330,7 @@
|
|||
window.__bootstrap.eventTarget = {
|
||||
EventTarget,
|
||||
setEventTargetData,
|
||||
listenerCount,
|
||||
};
|
||||
window.__bootstrap.event = {
|
||||
setIsTrusted,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue