Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
events: change EventTarget handler exception behavior
Change the behavior of EventTarget, instead of emitting 'error' on handler exception, emit 'uncaughtException'. Fixes: #36770 PR-URL: #37237 Fixes: #36770 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
- Loading branch information
Showing
with
23 additions
and 18 deletions.
| @@ -1137,6 +1137,9 @@ setMaxListeners(5, target, emitter); | ||
| <!-- YAML | ||
| added: v14.5.0 | ||
| changes: | ||
| - version: REPLACEME | ||
This comment has been minimized.
This comment has been minimized.
richardlau
Member
|
||
| pr-url: https://github.com/nodejs/node/pull/37237 | ||
| description: changed EventTarget error handling. | ||
| - version: v15.4.0 | ||
| pr-url: https://github.com/nodejs/node/pull/35949 | ||
| description: No longer experimental. | ||


@benjamingr I think this was missed during review.