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

Make early loaded extensions load robust against errors in individual extensions #1166

Merged
merged 1 commit into from
Dec 16, 2015

Conversation

cramforce
Copy link
Member

so that an error in A does not prevent B from loading.

Fixes #1159

Also adds tests for runtime.js

@cramforce cramforce force-pushed the extension-load-exceptions branch from 1a9c664 to 7eb67b0 Compare December 16, 2015 04:12
… extensions,

so that an error in A does not prevent B from loading.

Fixes ampproject#1159

Also adds tests for runtime.js
} catch (e) {
// Throw errors outside of loop in its own micro task to
// avoid on error stopping other extensions from loading.
timer.delay(() => {throw e;}, 1);
Copy link
Member

Choose a reason for hiding this comment

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

that is awesome 👍

cramforce added a commit that referenced this pull request Dec 16, 2015
Make early loaded extensions load robust against errors in individual extensions
@cramforce cramforce merged commit ce2bba5 into ampproject:master Dec 16, 2015
@cramforce cramforce deleted the extension-load-exceptions branch December 16, 2015 15:27
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