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
TextEncoder/TextDecoder SharedArrayBuffer tests #19531
TextEncoder/TextDecoder SharedArrayBuffer tests #19531
Conversation
f388330
to
f29981a
Compare
37961aa
to
1df43ba
Compare
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.
@hsivonen do you have any other tests you'd like to see added/modified? (Can also be done incrementally in a new PR perhaps.)
1df43ba
to
5b40312
Compare
I think it's enough to have If implementations ever want to do fancy optimizations, it would be good to test things like a stretch of more than 16 ASCII bytes followed by UTF-8 sequences with a variety of lead bytes followed by buffer end, but the kind of failure modes triggered would be very timing-dependent anyway and not really testable. In summary, I think there's no need to add anything specific regarding buffer content at this point. |
c506534
to
e033767
Compare
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.
This looks good to me, module some style nits I may or may not care enough to fix myself. @ricea any feedback?
Looks good. |
Tests: web-platform-tests/wpt#19531. Fixes #172.
If the repo had prettier, editor config, eslint or so, |
Add tests for TextEncoder/TextEncoder with SharedArrayBuffer