Skip to content

Commit 322cd88

Browse files
committed
code review
1 parent 4acb549 commit 322cd88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/events.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1249,13 +1249,13 @@ target.addEventListener('foo', handler4, { once: true });
12491249
When a registered event listener throws (or returns a Promise that rejects),
12501250
by default the error is treated as an uncaught exception on
12511251
`process.nextTick()`. This means uncaught exceptions in `EventTarget`s will
1252-
crash the Node.js process by default.
1252+
terminate the Node.js process by default.
12531253

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

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

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

0 commit comments

Comments
 (0)