mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +00:00
LibJS: Standardize the spec-order of Intl.DurationFormat definitions
This is an editorial change in the ECMA-402 spec. See:54ca35d
6cdcab3
e4cbfba
This commit is contained in:
parent
aa61307392
commit
56a6daee4d
Notes:
github-actions[bot]
2025-03-04 12:37:25 +00:00
Author: https://github.com/trflynn89
Commit: 56a6daee4d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3785
5 changed files with 97 additions and 97 deletions
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
static constexpr auto relevant_extension_keys()
|
||||
{
|
||||
// 13.3.3 Internal slots, https://tc39.es/ecma402/#sec-Intl.DurationFormat-internal-slots
|
||||
// 13.2.3 Internal slots, https://tc39.es/ecma402/#sec-Intl.DurationFormat-internal-slots
|
||||
// The value of the [[RelevantExtensionKeys]] internal slot is « "nu" ».
|
||||
return AK::Array { "nu"sv };
|
||||
}
|
||||
|
@ -218,8 +218,8 @@ struct DurationInstanceComponent {
|
|||
DurationFormat::ValueStyle digital_default;
|
||||
};
|
||||
|
||||
// Table 21: DurationFormat instance internal slots and properties relevant to PartitionDurationFormatPattern, https://tc39.es/ecma402/#table-partition-duration-format-pattern
|
||||
// Table 22: Internal slots and property names of DurationFormat instances relevant to Intl.DurationFormat constructor, https://tc39.es/ecma402/#table-durationformat
|
||||
// Table 20: Internal slots and property names of DurationFormat instances relevant to Intl.DurationFormat constructor, https://tc39.es/ecma402/#table-durationformat
|
||||
// Table 23: DurationFormat instance internal slots and properties relevant to PartitionDurationFormatPattern, https://tc39.es/ecma402/#table-partition-duration-format-pattern
|
||||
static constexpr auto date_values = AK::Array { "long"sv, "short"sv, "narrow"sv };
|
||||
static constexpr auto time_values = AK::Array { "long"sv, "short"sv, "narrow"sv, "numeric"sv, "2-digit"sv };
|
||||
static constexpr auto sub_second_values = AK::Array { "long"sv, "short"sv, "narrow"sv, "numeric"sv };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue