Skip to content
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

Allow modules to handle uncaught errors/unhandled rejections #518

Open
bajtos opened this issue Apr 11, 2024 · 0 comments
Open

Allow modules to handle uncaught errors/unhandled rejections #518

bajtos opened this issue Apr 11, 2024 · 0 comments
Labels
feature New feature or request

Comments

@bajtos
Copy link
Member

bajtos commented Apr 11, 2024

Implement globalThis.addEventListener("unhandledrejection", (event) => {}), see https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event

This will allow Voyager to graciously handle global errors escaping from the Saturn client and prevent the module from frequently crashing.

Related:

Consider reverting the following changes after we update Voyager to not crash on uncaught errors from Saturn:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant