mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
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:
parent
f518811f73
commit
c7dd4afd9c
Notes:
github-actions[bot]
2024-08-15 21:22:00 +00:00
Author: https://github.com/trflynn89
Commit: c7dd4afd9c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1085
5 changed files with 83 additions and 114 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue