Skip to content

Conversation

@joshkel
Copy link
Contributor

@joshkel joshkel commented Nov 7, 2025

While researching EventEmitter versus Node.js's EventTarget versus DOM EventTarget, I found these docs on NodeEventTarget and was confused when I couldn't find NodeEventTarget itself.

As far as I can tell, NodeEventTarget is used exactly once - by MessagePort. This makes me wonder if NodeEventTarget should be deprecated and/or become undocumented - but these docs are a minimal, hopefully helpful step if that isn't desirable.

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. events Issues and PRs related to the events subsystem / EventEmitter. labels Nov 7, 2025
@joshkel joshkel force-pushed the node-event-target-docs branch from 1aecd6f to a626fda Compare November 7, 2025 21:37
While researching EventEmitter versus Node.js's EventTarget versus DOM
EventTarget, I found these docs on NodeEventTarget and was confused when
I couldn't find NodeEventTarget itself.

As far as I can tell, NodeEventTarget is used exactly once - by
MessagePort. This makes me wonder if NodeEventTarget should be
deprecated and/or become undocumented - but these docs are a minimal,
hopefully helpful step if that isn't desirable.
@joshkel joshkel force-pushed the node-event-target-docs branch from a626fda to fe22837 Compare November 7, 2025 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations. events Issues and PRs related to the events subsystem / EventEmitter.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants