mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:27:35 +00:00
LibJS: Rename DateFromFields to CalendarDateFromFields, etc
This is an editorial change in the Temporal spec.
See: fd27b54
This commit is contained in:
parent
a7f702a021
commit
2499911898
11 changed files with 71 additions and 80 deletions
|
@ -113,8 +113,8 @@ ThrowCompletionOr<PlainMonthDay*> to_temporal_month_day(GlobalObject& global_obj
|
|||
MUST(fields->create_data_property_or_throw(vm.names.year, Value(reference_iso_year)));
|
||||
}
|
||||
|
||||
// j. Return ? MonthDayFromFields(calendar, fields, options).
|
||||
return month_day_from_fields(global_object, *calendar, *fields, options);
|
||||
// j. Return ? CalendarMonthDayFromFields(calendar, fields, options).
|
||||
return calendar_month_day_from_fields(global_object, *calendar, *fields, options);
|
||||
}
|
||||
|
||||
// 5. Perform ? ToTemporalOverflow(options).
|
||||
|
@ -139,8 +139,8 @@ ThrowCompletionOr<PlainMonthDay*> to_temporal_month_day(GlobalObject& global_obj
|
|||
auto* plain_month_day = TRY(create_temporal_month_day(global_object, result.month, result.day, *calendar, reference_iso_year));
|
||||
|
||||
// 11. NOTE: The following operation is called without options, in order for the calendar to store a canonical value in the [[ISOYear]] internal slot of the result.
|
||||
// 12. Return ? MonthDayFromFields(calendar, result).
|
||||
return TRY(month_day_from_fields(global_object, *calendar, *plain_month_day));
|
||||
// 12. Return ? CalendarMonthDayFromFields(calendar, result).
|
||||
return TRY(calendar_month_day_from_fields(global_object, *calendar, *plain_month_day));
|
||||
}
|
||||
|
||||
// 10.5.2 CreateTemporalMonthDay ( isoMonth, isoDay, calendar, referenceISOYear [ , newTarget ] ), https://tc39.es/proposal-temporal/#sec-temporal-createtemporalmonthday
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue