mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:17:34 +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:
parent
569c2dc1d0
commit
52a4ee563d
6 changed files with 13 additions and 17 deletions
|
@ -540,7 +540,7 @@ ThrowCompletionOr<Duration*> difference_temporal_plain_date(GlobalObject& global
|
|||
auto rounding_increment = TRY(to_temporal_rounding_increment(global_object, *options, {}, false));
|
||||
|
||||
// 13. Let untilOptions be ? MergeLargestUnitOption(options, largestUnit).
|
||||
auto* until_options = TRY(merge_largest_unit_option(global_object, options, largest_unit.release_value()));
|
||||
auto* until_options = TRY(merge_largest_unit_option(global_object, *options, largest_unit.release_value()));
|
||||
|
||||
// 14. Let result be ? CalendarDateUntil(temporalDate.[[Calendar]], temporalDate, other, untilOptions).
|
||||
auto* duration = TRY(calendar_date_until(global_object, temporal_date.calendar(), &temporal_date, other, *until_options));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue