mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
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: https://github.com/tc39/ecma402/commit/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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user