-
-
Notifications
You must be signed in to change notification settings - Fork 411
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
[Merged by Bors] - Implement String.prototype.toLocaleUpper/LowerCase
#2822
Conversation
Test262 conformance changes
Fixed tests (108):
|
Codecov Report
@@ Coverage Diff @@
## main #2822 +/- ##
==========================================
- Coverage 51.32% 51.29% -0.03%
==========================================
Files 417 417
Lines 41356 41383 +27
==========================================
+ Hits 21224 21226 +2
- Misses 20132 20157 +25
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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.
Looks great. When the function name is fixed, almost all tests in the String suite pass.
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.
Is there a way that we can avoid putting large binary data into git history? maybe generating this in a build.rs
?
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.
We started with the build.rs approach on this, but it did increase compile times to much, especially in the ci. I think for now this should work. Alternativeley, we could move boa_icu_provider
to a separate repository to make this easier on the git history.
Also, before looking at the size of this file, I think we should probably look at the 262 test result files on the gh-pages
branch :D
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.
We started with the build.rs approach on this, but it did increase compile times to much, especially in the ci. I think for now this should work. Alternativeley, we could move boa_icu_provider to a separate repository to make this easier on the git history.
Yes, for the long term this seems like the a good solution.
Also, before looking at the size of this file, I think we should probably look at the 262 test result files on the gh-pages branch :D
😆 Yeah, It's big, but we could always edit the history on the gh-pages
tho
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 this file doesn't change much, we might want to use git LFS: https://docs.github.com/en/repositories/working-with-files/managing-large-files/configuring-git-large-file-storage
bors r+ |
This fixes some more ES5 tests that were failing because the functions haven't been implemented. It changes the following: - Adds `String::to_locale_case`, which uses ICU4X to convert strings to uppercase or lowercase. - Refactors `String::to_uppercase` and `String::to_lowercase` into a single `String::to_case` which uses a const generic to distinguish each case. - Adds utility functions on `JsString` to avoid code repetition.
Pull request successfully merged into main. Build succeeded: |
String.prototype.toLocaleUpper/LowerCase
String.prototype.toLocaleUpper/LowerCase
This fixes some more ES5 tests that were failing because the functions haven't been implemented.
It changes the following:
String::to_locale_case
, which uses ICU4X to convert strings to uppercase or lowercase.String::to_uppercase
andString::to_lowercase
into a singleString::to_case
which uses a const generic to distinguish each case.JsString
to avoid code repetition.