events: remove redundant todo

PR-URL: https://github.com/nodejs/node/pull/60595
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
This commit is contained in:
Gürgün Dayıoğlu authored and Antoine du Hamel committed 2026-01-20 15:21:04 +01:00
1 parent cf56327939
commit 828feb2e6b
1 file changed
-2
-2
View File
@@ -639,8 +639,6 @@ class EventTarget {
if (signal.aborted) {
return;
}
// TODO(benjamingr) make this weak somehow? ideally the signal would
// not prevent the event target from GC.
signal.addEventListener('abort', () => {
this.removeEventListener(type, listener, options);
}, { __proto__: null, once: true, [kWeakHandler]: this, [kResistStopPropagation]: true });