Skip to content

Error and promise rejection events must be fired on the global object #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 9, 2025

Conversation

andreubotella
Copy link
Member

As decided in today's meeting, this PR specifies that the error, unhandledrejection and rejectionhandled events are fired on the global object. It also adds the ErrorEvent and PromiseRejectionEvent interfaces, and the onerror, onunhandledrejection and onrejectionhandled event handler properties, to the minimum common API list.

This PR also has a note covering the likely case that Node.js will not support this due to legacy.

As decided in today's meeting, this PR specifies that the `error`,
`unhandledrejection` and `rejectionhandled` events are fired on the
global object. It also adds the `ErrorEvent` and
`PromiseRejectionEvent` interfaces, and the `onerror`,
`onunhandledrejection` and `onrejectionhandled` event handler
properties, to the minimum common API list.

This PR also has a note covering the likely case that Node.js will
not support this due to legacy.
@andreubotella andreubotella merged commit bc3adbe into main May 9, 2025
3 checks passed
@andreubotella andreubotella deleted the error-events branch May 9, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants