forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JSC] Canonicalize "true" unicode extension type value to ""
https://bugs.webkit.org/show_bug.cgi?id=216224 Reviewed by Ross Kirsling. JSTests: * stress/intl-collator-co-extension.js: (explicitTrueBeforeICU67): Deleted. * stress/intl-collator.js: (shouldBe.testCollator.Intl.Collator): (explicitTrueBeforeICU67): Deleted. * stress/intl-datetimeformat.js: * stress/intl-locale.js: * stress/intl-numberformat.js: * stress/intl-object.js: * stress/intl-pluralrules.js: * stress/intl-relativetimeformat.js: * test262/expectations.yaml: Source/JavaScriptCore: Unicode Technical Standard #35 defines that unicode extension type's "true" should be converged to "". This patch implements it by extracting unicode extension subtags and replacing "true" to "". * runtime/IntlLocale.cpp: (JSC::LocaleIDBuilder::toCanonical): (JSC::IntlLocale::keywordValue const): (JSC::IntlLocale::calendar): (JSC::IntlLocale::caseFirst): (JSC::IntlLocale::collation): (JSC::IntlLocale::hourCycle): (JSC::IntlLocale::numberingSystem): (JSC::IntlLocale::numeric): * runtime/IntlLocale.h: * runtime/IntlLocalePrototype.cpp: (JSC::IntlLocalePrototypeGetterCalendar): (JSC::IntlLocalePrototypeGetterCaseFirst): (JSC::IntlLocalePrototypeGetterCollation): (JSC::IntlLocalePrototypeGetterHourCycle): (JSC::IntlLocalePrototypeGetterNumberingSystem): * runtime/IntlObject.cpp: (JSC::unicodeExtensionSubTags): (JSC::canonicalizeUnicodeExtensionsAfterICULocaleCanonicalization): (JSC::languageTagForLocaleID): (JSC::resolveLocale): * runtime/IntlObject.h: * runtime/IntlObjectInlines.h: (JSC::computeTwoCharacters16Code): * runtime/StringPrototype.cpp: (JSC::computeTwoCharacters16Code): Deleted. Source/WTF: * wtf/text/StringView.h: (WTF::StringView::characterAt const): (WTF::StringView::operator[] const): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@266973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
d7ade5b
commit 3efeab1
Showing
20 changed files
with
249 additions
and
117 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,23 @@ | ||
2020-09-11 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Canonicalize "true" unicode extension type value to "" | ||
https://bugs.webkit.org/show_bug.cgi?id=216224 | ||
|
||
Reviewed by Ross Kirsling. | ||
|
||
* stress/intl-collator-co-extension.js: | ||
(explicitTrueBeforeICU67): Deleted. | ||
* stress/intl-collator.js: | ||
(shouldBe.testCollator.Intl.Collator): | ||
(explicitTrueBeforeICU67): Deleted. | ||
* stress/intl-datetimeformat.js: | ||
* stress/intl-locale.js: | ||
* stress/intl-numberformat.js: | ||
* stress/intl-object.js: | ||
* stress/intl-pluralrules.js: | ||
* stress/intl-relativetimeformat.js: | ||
* test262/expectations.yaml: | ||
|
||
2020-09-11 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] attribute-change transition should not pin Structure | ||
|
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
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
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
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
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,40 @@ | ||
2020-09-11 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] Canonicalize "true" unicode extension type value to "" | ||
https://bugs.webkit.org/show_bug.cgi?id=216224 | ||
|
||
Reviewed by Ross Kirsling. | ||
|
||
Unicode Technical Standard #35 defines that unicode extension type's "true" should be converged to "". | ||
This patch implements it by extracting unicode extension subtags and replacing "true" to "". | ||
|
||
* runtime/IntlLocale.cpp: | ||
(JSC::LocaleIDBuilder::toCanonical): | ||
(JSC::IntlLocale::keywordValue const): | ||
(JSC::IntlLocale::calendar): | ||
(JSC::IntlLocale::caseFirst): | ||
(JSC::IntlLocale::collation): | ||
(JSC::IntlLocale::hourCycle): | ||
(JSC::IntlLocale::numberingSystem): | ||
(JSC::IntlLocale::numeric): | ||
* runtime/IntlLocale.h: | ||
* runtime/IntlLocalePrototype.cpp: | ||
(JSC::IntlLocalePrototypeGetterCalendar): | ||
(JSC::IntlLocalePrototypeGetterCaseFirst): | ||
(JSC::IntlLocalePrototypeGetterCollation): | ||
(JSC::IntlLocalePrototypeGetterHourCycle): | ||
(JSC::IntlLocalePrototypeGetterNumberingSystem): | ||
* runtime/IntlObject.cpp: | ||
(JSC::unicodeExtensionSubTags): | ||
(JSC::canonicalizeUnicodeExtensionsAfterICULocaleCanonicalization): | ||
(JSC::languageTagForLocaleID): | ||
(JSC::resolveLocale): | ||
* runtime/IntlObject.h: | ||
* runtime/IntlObjectInlines.h: | ||
(JSC::computeTwoCharacters16Code): | ||
* runtime/StringPrototype.cpp: | ||
(JSC::computeTwoCharacters16Code): Deleted. | ||
|
||
2020-09-11 Yusuke Suzuki <[email protected]> | ||
|
||
[JSC] attribute-change transition should not pin Structure | ||
|
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
Oops, something went wrong.