-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Intl.Collator should take collation option
https://bugs.webkit.org/show_bug.cgi?id=216529 Reviewed by Ross Kirsling. JSTests: * stress/intl-collator-co-extension.js: (shouldThrow): Source/JavaScriptCore: This patch adds "collation" option to Intl.Collator. We are already getting consensus[1], and will be integrated into the spec. Previously, passing "collation" is only available through "-u-co-" unicode extension in the passed locale. The proposal exposes collation option as an option to Intl.Collator so that we can set it easily. "collation" is used only when "usage" is "sort". "search" usage will filter out collation options since "search" itself is one of the "collation" option. [1]: tc39/ecma402#459 * runtime/IntlCollator.cpp: (JSC::IntlCollator::sortLocaleData): (JSC::IntlCollator::initializeCollator): Canonical link: https://commits.webkit.org/229383@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@267102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
ed8484a
commit 3d81389
Showing
4 changed files
with
93 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
2020-09-14 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Intl.Collator should take collation option | ||
https://bugs.webkit.org/show_bug.cgi?id=216529 | ||
|
||
Reviewed by Ross Kirsling. | ||
|
||
* stress/intl-collator-co-extension.js: | ||
(shouldThrow): | ||
|
||
2020-09-14 Keith Miller <[email protected]> | ||
|
||
BytecodeParser should GetLocal op_ret's value even if it's unused by the caller | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
2020-09-14 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Intl.Collator should take collation option | ||
https://bugs.webkit.org/show_bug.cgi?id=216529 | ||
|
||
Reviewed by Ross Kirsling. | ||
|
||
This patch adds "collation" option to Intl.Collator. We are already getting consensus[1], and will be integrated into the spec. | ||
Previously, passing "collation" is only available through "-u-co-" unicode extension in the passed locale. The proposal exposes | ||
collation option as an option to Intl.Collator so that we can set it easily. | ||
"collation" is used only when "usage" is "sort". "search" usage will filter out collation options since "search" itself is one of | ||
the "collation" option. | ||
|
||
[1]: https://github.com/tc39/ecma402/pull/459 | ||
|
||
* runtime/IntlCollator.cpp: | ||
(JSC::IntlCollator::sortLocaleData): | ||
(JSC::IntlCollator::initializeCollator): | ||
|
||
2020-09-15 Joonghun Park <[email protected]> | ||
|
||
Unreviewed. Remove the build warning below since r228533. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters