Skip to content

Conversation

@juj
Copy link
Collaborator

@juj juj commented Nov 20, 2025

#25823 added a new ES6 Worker test. Gate it behind feature check to fix Firefox 91 ESR and Firefox 102 ESR test runs.

…ture check to fix Firefox 91 ESR and Firefox 102 ESR test runs.
# This test create a second HTTP server running a different port that servers files from `subdir`.
# The main html is the servers from the normal 8888 server while the JS and Wasm are hosted
if '-sEXPORT_ES6' in args and browser_should_skip_feature('EMTEST_LACKS_ES6_WORKERS', Feature.WORKER_ES6_MODULES):
self.skipTest('This test requires a browser with ES6 Module Workers support')
Copy link
Collaborator

Choose a reason for hiding this comment

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

I guess we should have a method version of @requires_es6_workers decorator. But this LGTM for now.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah, the awkwardness of decorators not combining well with these parameterized modes repeats in many tests. That would be a bit of a cleanup refactor to figure out how to create a simple pattern that would work well in both.

@juj juj merged commit 1a64817 into emscripten-core:main Nov 20, 2025
34 checks passed
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