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:
Timothy Flynn 2025-03-03 08:22:16 -05:00 committed by Tim Flynn
parent aa61307392
commit 56a6daee4d
Notes: github-actions[bot] 2025-03-04 12:37:25 +00:00
5 changed files with 97 additions and 97 deletions

View file

@ -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 };