Repository navigation
process 'error' event is undocumented #36770
Description
Activity
- addeddocIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.eventtargetIssues and PRs related to the EventTarget implementation.Issues and PRs related to the EventTarget implementation.
on Jan 4, 2021 I wonder if we want to keep it or emit uncaughtException directly since no-one actually complained about this or asked for this since EventEmitter was added.
We can also just doc it.
Any strong opinions?
I was definitely caught by surprise by this being added, and would be happy to treat it as uncaught exceptions (i.e. act as if there’s no
'error'listener present).What's the issue here? There is documentation for this: https://nodejs.org/dist/latest-v15.x/docs/api/events.html#events_eventtarget_error_handling
https://nodejs.org/api/process.html#process_process_events is missing them – we always document events on the emitter.
Reacted by James M Snell and Benjamin Gruenbaum@jasnell any strong opinions about making this an
uncaughtException? I'm happy to make a PR.About making what an
uncaughtException? Sorry, it's not clear@jasnell About making an exception inside a
EventTargetevent handler be treated like an uncaught exception, i.e. trigger theuncaughtExceptionlistener if there is one and otherwise exit the process with error code 1.Reacted by Benjamin GruenbaumI'll try taking a stab at this
Reacted by Omri Luzon- added a commit that references this issue
on May 22, 2026
node/lib/internal/event_target.js
Line 604 in 8b8620d