...
https://github.com/tc39/intl-displaynames-v2
Created attachment 433283 [details] Patch
Created attachment 433286 [details] Patch
<rdar://problem/80674704>
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].