Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Add unhandled promise rejection error handling #20

Merged
merged 9 commits into from
Aug 8, 2019
Merged

Add unhandled promise rejection error handling #20

merged 9 commits into from
Aug 8, 2019

Conversation

ma2ciek
Copy link
Contributor

@ma2ciek ma2ciek commented Aug 7, 2019

Suggested merge commit message (convention)

Feature: Added unhandled promise rejection error handling. Fixed objects in the crashed array Closes ckeditor/ckeditor5#4694.


Additional information

From now all unhandled promise rejections will be caught by the watchdog, and if such error comes from the watchdog's editor the watchdog will restart it.

For example – encountered issues, assumptions you had to make, other affected tickets, etc.

Requires ckeditor/ckeditor5-dev#539.

@ma2ciek
Copy link
Contributor Author

ma2ciek commented Aug 8, 2019

I see that the red test is from Firefox, which will support the unhandledrejection event from the next release (69), which will be released after a month :/

Compatibility table: https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onunhandledrejection.

@ma2ciek
Copy link
Contributor Author

ma2ciek commented Aug 8, 2019

Maybe, for now, we can write a test for Chrome only? cc @pjasiun.

@pjasiun
Copy link

pjasiun commented Aug 8, 2019

Maybe, for now, we can write a test for Chrome only? cc @pjasiun.

Yep. I was also thinking about it.

@ma2ciek ma2ciek marked this pull request as ready for review August 8, 2019 12:20
@ma2ciek ma2ciek requested a review from pjasiun August 8, 2019 14:00
@pjasiun pjasiun merged commit 1a47364 into master Aug 8, 2019
@pjasiun pjasiun deleted the t/3 branch August 8, 2019 14:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for promise (async) errors
2 participants