diff --git a/lib/internal/event_target.js b/lib/internal/event_target.js index 73d8c12ee7ff9b..cfd3a4922e62ad 100644 --- a/lib/internal/event_target.js +++ b/lib/internal/event_target.js @@ -200,7 +200,7 @@ class Event { get currentTarget() { if (!isEvent(this)) throw new ERR_INVALID_THIS('Event'); - return this[kTarget]; + return this[kIsBeingDispatched] ? this[kTarget] : null; } /**