mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
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:
1 parent
cf56327939
commit
828feb2e6b
1 file changed
-2
@@ -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 });
|
||||
|
||||
Reference in new issue
Block a user