mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:47:34 +00:00
LibJS+LibUnicode: Add "microsecond" and "nanosecond" as sanctioned units
This is a normative change in the ECMA-402 spec. See:
f627573
This commit is contained in:
parent
8ff0d35386
commit
a5bf32018f
3 changed files with 30 additions and 10 deletions
|
@ -40,6 +40,7 @@ constexpr auto sanctioned_single_unit_identifiers()
|
|||
"megabit"sv,
|
||||
"megabyte"sv,
|
||||
"meter"sv,
|
||||
"microsecond"sv,
|
||||
"mile"sv,
|
||||
"mile-scandinavian"sv,
|
||||
"milliliter"sv,
|
||||
|
@ -47,6 +48,7 @@ constexpr auto sanctioned_single_unit_identifiers()
|
|||
"millisecond"sv,
|
||||
"minute"sv,
|
||||
"month"sv,
|
||||
"nanosecond"sv,
|
||||
"ounce"sv,
|
||||
"percent"sv,
|
||||
"petabyte"sv,
|
||||
|
@ -61,10 +63,4 @@ constexpr auto sanctioned_single_unit_identifiers()
|
|||
};
|
||||
}
|
||||
|
||||
// Additional single units used in ECMAScript required by the Intl.DurationFormat proposal
|
||||
constexpr auto extra_sanctioned_single_unit_identifiers()
|
||||
{
|
||||
return AK::Array { "microsecond"sv, "nanosecond"sv };
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue