Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamingr committed Feb 11, 2021
1 parent 4acb549 commit 322cd88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1249,13 +1249,13 @@ target.addEventListener('foo', handler4, { once: true });
When a registered event listener throws (or returns a Promise that rejects),
by default the error is treated as an uncaught exception on
`process.nextTick()`. This means uncaught exceptions in `EventTarget`s will
crash the Node.js process by default.
terminate the Node.js process by default.

Throwing within an event listener will *not* stop the other registered handlers
from being invoked.

The `EventTarget` does not implement any special default handling for `'error'`
type events like `EventEmitter` does in order to be spec compliant.
type events like `EventEmitter`.

Currently errors are first forwarded to the `process.on('error')` event
before reaching `process.on('uncaughtException')` - this behaviour is
Expand Down

0 comments on commit 322cd88

Please sign in to comment.