-
Notifications
You must be signed in to change notification settings - Fork 30k
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
util: fix Latin1 decoding to return string output #56222
util: fix Latin1 decoding to return string output #56222
Conversation
Can you add a test? |
added to cctest |
Could we have a test with |
Yes, that's right. I'm sorry, I was focusing on the cctest. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #56222 +/- ##
==========================================
+ Coverage 88.52% 88.54% +0.01%
==========================================
Files 657 657
Lines 189860 189972 +112
Branches 36448 36483 +35
==========================================
+ Hits 168080 168206 +126
+ Misses 14978 14952 -26
- Partials 6802 6814 +12
|
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.
To my knowledge, it is the first TextDecoder test for Latin1 that we have! So that's progress. :-)
I'm so happy to hear that! 🚀 |
Good work! |
Related test failure on build compiled
|
I'm considering whether skipping the test in such scenarios would be the correct approach. Alternatively, I managed to implement a custom solution to decode the sequence myself, but I’m unsure if this is a reliable or sustainable approach. Do you have any suggestions or best practices for handling this situation? Thank you in advance for your guidance! |
For this specific case, it's probably fine to skip the test for builds without intl. We could theoretically implement further support, but I believe that is not currently necessary, as it has not been requested. |
I passed the test with the condition !common.hasIntl |
Co-authored-by: Yagiz Nizipli <[email protected]>
Landed in e7a397a |
returned a string instead of a buffer
Fixes: #56219