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

Added out of band error support #88

Merged
merged 4 commits into from
Sep 24, 2021
Merged

Added out of band error support #88

merged 4 commits into from
Sep 24, 2021

Conversation

shanejonas
Copy link
Contributor

@shanejonas shanejonas commented Sep 24, 2021

This adds out of band error support to the IframeExecutionEnvironmentService and WebWorkerEnvironmentService via the onError constructor argument.

Note: I'm unable to add the tests for this, I'm hitting this issue around handling uncaught/unhandled errors: jestjs/jest#5620

@shanejonas shanejonas requested a review from a team September 24, 2021 19:31
@@ -66,6 +67,7 @@ describe('Iframe Controller', () => {
await expect(action()).rejects.toThrow(
/Error while running plugin 'TestPlugin'/u,
);
await iframeExecutionEnvironmentService.terminateAllPlugins();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added terminateAllPlugins here because when testing it wasn't cleaning up the plugin from the page

Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

@shanejonas shanejonas merged commit 3dd4a55 into main Sep 24, 2021
@shanejonas shanejonas deleted the add-out-of-band-errors branch September 24, 2021 19:59
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