Skip to content

Commit 828feb2

Browse files
gurgundayaduh95
authored andcommitted
events: remove redundant todo
PR-URL: #60595 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent cf56327 commit 828feb2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/internal/event_target.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -639,8 +639,6 @@ class EventTarget {
639639
if (signal.aborted) {
640640
return;
641641
}
642-
// TODO(benjamingr) make this weak somehow? ideally the signal would
643-
// not prevent the event target from GC.
644642
signal.addEventListener('abort', () => {
645643
this.removeEventListener(type, listener, options);
646644
}, { __proto__: null, once: true, [kWeakHandler]: this, [kResistStopPropagation]: true });

0 commit comments

Comments
 (0)