| Summary: | [JSC] Intl.DisplayNames v2 | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Yusuke Suzuki <ysuzuki> | ||||||||||||
| Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||
| Severity: | Normal | CC: | ews-watchlist, keith_miller, mark.lam, msaboff, ross.kirsling, saam, tzagallo, webkit-bug-importer | ||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||
| Version: | WebKit Nightly Build | ||||||||||||||
| Hardware: | Unspecified | ||||||||||||||
| OS: | Unspecified | ||||||||||||||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=229608 | ||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
Yusuke Suzuki
2021-07-09 01:37:43 PDT
Created attachment 433283 [details]
Patch
Created attachment 433286 [details]
Patch
Created attachment 435125 [details]
Patch
Created attachment 435951 [details]
Patch
Comment on attachment 435951 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435951&action=review r=me with comments > Source/JavaScriptCore/runtime/IntlDisplayNames.cpp:210 > + // If code does not matches the unicode_language_id production, throw a RangeError exception > + if (!isUnicodeLanguageId(code)) { > + throwRangeError(globalObject, scope, "argument is not a language id"_s); Hmm, I feel like this comment doesn't add any information. (Ditto for the region and script ones.) > Source/JavaScriptCore/runtime/IntlDisplayNames.cpp:295 > + // Convert code to legacy names since ICU requires legacy names. Ooh, this could use the helper function I suggested in the Locale Info patch too. Comment on attachment 435951 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=435951&action=review >> Source/JavaScriptCore/runtime/IntlDisplayNames.cpp:210 >> + throwRangeError(globalObject, scope, "argument is not a language id"_s); > > Hmm, I feel like this comment doesn't add any information. (Ditto for the region and script ones.) Removed. >> Source/JavaScriptCore/runtime/IntlDisplayNames.cpp:295 >> + // Convert code to legacy names since ICU requires legacy names. > > Ooh, this could use the helper function I suggested in the Locale Info patch too. Changed. Created attachment 436073 [details]
Patch
Committed r281375 (240790@main): <https://commits.webkit.org/240790@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 436073 [details]. |