-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Test that JSPI works in chrome browser tests. #19026
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 JSPI works in chrome browser tests. #19026
Conversation
sbc100
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
dd78012 to
e4c2c19
Compare
|
Could we enable one of the existing tests in JSPI mode perhaps? (say, |
e4c2c19 to
f47fc87
Compare
Good point. I originally thought I needed a more thorough test because test_async was passing without JSPI enabled, but it turns out my chrome profile already had JSPI enabled. I switched to a new profile now for tests now. |
f47fc87 to
4622d86
Compare
4622d86 to
c600b5b
Compare
| @parameterized({ | ||
| 'asyncify': (['-sASYNCIFY=1'],), | ||
| 'jspi': (['-sASYNCIFY=2', '-Wno-experimental'],), | ||
| }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we add more of these it might make sense to add a @also_with_jspi decorator or such, like we have for other stuff, but I'm not sure. Just a thought for later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I was going to add this, but wasn't sure what happens when you have multiple -sASYNCIFY args i.e. the main test will have -sASYNCIFY=1, but the @also_with_jspi will add -sASYNCIFY=2. I'm guessing the last overwrites it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, later -s flags should override.
No description provided.