mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +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
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