Skip to content

Commit 817c0da

Browse files
committed
event: remove return value on addEventListener
The `addEventListener()` should not return a value. Signed-off-by: James M Snell <jasnell@gmail.com>
1 parent 853086f commit 817c0da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/event_target.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ class EventTarget {
329329

330330
if (signal) {
331331
if (signal.aborted) {
332-
return false;
332+
return;
333333
}
334334
// TODO(benjamingr) make this weak somehow? ideally the signal would
335335
// not prevent the event target from GC.

0 commit comments

Comments
 (0)