Skip to content

Commit

Permalink
event: remove return value on addEventListener
Browse files Browse the repository at this point in the history
The `addEventListener()` should not return a value.

Signed-off-by: James M Snell <jasnell@gmail.com>
  • Loading branch information
jasnell committed Mar 10, 2021
1 parent 853086f commit 817c0da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/event_target.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class EventTarget {

if (signal) {
if (signal.aborted) {
return false;
return;
}
// TODO(benjamingr) make this weak somehow? ideally the signal would
// not prevent the event target from GC.
Expand Down

0 comments on commit 817c0da

Please sign in to comment.