1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:17:45 +00:00

LibJS: Assume options is an object in the MergeLargestUnitOption AO

This is an editorial change in the Temporal spec.

See: 20a04ac
This commit is contained in:
Linus Groh 2022-06-15 00:47:40 +01:00
parent 569c2dc1d0
commit 52a4ee563d
6 changed files with 13 additions and 17 deletions

View file

@ -376,7 +376,7 @@ ThrowCompletionOr<DurationRecord> difference_iso_date_time(GlobalObject& global_
auto date_largest_unit = larger_of_two_temporal_units("day"sv, largest_unit);
// 9. Let untilOptions be ? MergeLargestUnitOption(options, dateLargestUnit).
auto* until_options = TRY(merge_largest_unit_option(global_object, &options, date_largest_unit));
auto* until_options = TRY(merge_largest_unit_option(global_object, options, date_largest_unit));
// 10. Let dateDifference be ? CalendarDateUntil(calendar, date1, date2, untilOptions).
auto* date_difference = TRY(calendar_date_until(global_object, calendar, date1, date2, *until_options));