feat(ext/web): Add AbortSignal.timeout() (#13687)

This commit is contained in:
Andreu Botella 2022-03-14 20:19:22 +01:00 committed by GitHub
parent 5eb0e4c2df
commit 9f494dc405
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 126 additions and 10 deletions

View file

@ -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,