mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibJS+LibUnicode: Align ECMA-402 "sanctioned" terminology with UTS 35
This is an editorial change in the Intl spec. See:087995c
233d29c
This also adds a missing spec link for the sanctioned units and fixes a broken spec link for IsSanctionedSingleUnitIdentifier. In LibUnicode, the NumberFormat generator is updated to use the constexpr helper to retrieve sanctioned units.
This commit is contained in:
parent
1a76839e8d
commit
066352c9aa
Notes:
sideshowbarker
2024-07-18 22:57:59 +09:00
Author: https://github.com/trflynn89
Commit: 066352c9aa
Pull-request: https://github.com/SerenityOS/serenity/pull/13315
Reviewed-by: https://github.com/linusg
4 changed files with 24 additions and 26 deletions
|
@ -141,7 +141,7 @@ JS_DEFINE_NATIVE_FUNCTION(Intl::supported_values_of)
|
|||
// 7. Else if key is "unit", then
|
||||
else if (key == "unit"sv) {
|
||||
// a. Let list be ! AvailableUnits( ).
|
||||
static auto units = sanctioned_simple_unit_identifiers();
|
||||
static auto units = sanctioned_single_unit_identifiers();
|
||||
list = units.span();
|
||||
}
|
||||
// 8. Else,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue