1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:47:34 +00:00

LibJS: Change LargerOfTwoTemporalUnits AO to return a StringView

This commit is contained in:
Timothy Flynn 2021-11-29 18:59:07 -05:00 committed by Linus Groh
parent 2cea4ad508
commit 1039159a6c
7 changed files with 9 additions and 9 deletions

View file

@ -394,7 +394,7 @@ ThrowCompletionOr<TemporalDuration> difference_iso_date_time(GlobalObject& globa
auto date_largest_unit = larger_of_two_temporal_units("day"sv, largest_unit);
// 11. Let untilOptions be ? MergeLargestUnitOption(options, dateLargestUnit).
auto* until_options = TRY(merge_largest_unit_option(global_object, *options, move(date_largest_unit)));
auto* until_options = TRY(merge_largest_unit_option(global_object, *options, date_largest_unit));
// 12. Let dateDifference be ? CalendarDateUntil(calendar, date1, date2, untilOptions).
auto* date_difference = TRY(calendar_date_until(global_object, calendar, date1, date2, *until_options));