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

Test that dynamic import() is disallowed in paint worklets #26175

Merged
merged 2 commits into from
Dec 10, 2020

Conversation

domenic
Copy link
Member

@domenic domenic commented Oct 19, 2020

Follows whatwg/html#6070.

Copy link
Member

@annevk annevk left a comment

Choose a reason for hiding this comment

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

Let's also update the README.md while here.

try {
await import('./resources/imported-module.mjs');
} catch (e) {
if (e.constructor === TypeError) {
Copy link
Member

Choose a reason for hiding this comment

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

Should we also check .name as testharness.js seems to do?

Copy link
Member Author

Choose a reason for hiding this comment

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

Eh, the only way .name would be different would be if someone mucked with TypeError.prototype.name, which seems unlikely?

@domenic domenic merged commit 43fb3b2 into master Dec 10, 2020
@domenic domenic deleted the worklet-dynamic-import branch December 10, 2020 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants