mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +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
|
@ -110,8 +110,8 @@ ThrowCompletionOr<ISODateTime> interpret_temporal_date_time_fields(GlobalObject&
|
|||
// 2. Let overflow be ? ToTemporalOverflow(options).
|
||||
auto overflow = TRY(to_temporal_overflow(global_object, &options));
|
||||
|
||||
// 3. Let temporalDate be ? DateFromFields(calendar, fields, options).
|
||||
auto* temporal_date = TRY(date_from_fields(global_object, calendar, fields, &options));
|
||||
// 3. Let temporalDate be ? CalendarDateFromFields(calendar, fields, options).
|
||||
auto* temporal_date = TRY(calendar_date_from_fields(global_object, calendar, fields, &options));
|
||||
|
||||
// 4. Let timeResult be ? RegulateTime(timeResult.[[Hour]], timeResult.[[Minute]], timeResult.[[Second]], timeResult.[[Millisecond]], timeResult.[[Microsecond]], timeResult.[[Nanosecond]], overflow).
|
||||
auto time_result = TRY(regulate_time(global_object, unregulated_time_result.hour, unregulated_time_result.minute, unregulated_time_result.second, unregulated_time_result.millisecond, unregulated_time_result.microsecond, unregulated_time_result.nanosecond, overflow));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue