LibJS+LibUnicode: Update the Intl.DateTimeFormat constructor spec steps

This constructor has undergone a handful of editorial changes that we
fell behind on. But we weren't able to take the updates until now due to
a spec bug in those updates. See:
3f029b0

The result is that we can remove the inheritance of Intl::DateTimeFormat
from Unicode::DateTimeFormat; the former now contains the latter as an
internal slot.
This commit is contained in:
Timothy Flynn 2024-08-15 15:06:54 -04:00 committed by Tim Flynn
commit c7dd4afd9c
Notes: github-actions[bot] 2024-08-15 21:22:00 +00:00
5 changed files with 83 additions and 114 deletions

View file

@ -63,23 +63,6 @@ struct CalendarPattern {
static CalendarPattern create_from_pattern(StringView);
String to_pattern() const;
template<typename Callback>
void for_each_calendar_field_zipped_with(CalendarPattern const& other, Callback&& callback)
{
callback(hour_cycle, other.hour_cycle);
callback(era, other.era);
callback(year, other.year);
callback(month, other.month);
callback(weekday, other.weekday);
callback(day, other.day);
callback(day_period, other.day_period);
callback(hour, other.hour);
callback(minute, other.minute);
callback(second, other.second);
callback(fractional_second_digits, other.fractional_second_digits);
callback(time_zone_name, other.time_zone_name);
}
Optional<HourCycle> hour_cycle;
Optional<bool> hour12;