mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibJS: Mark invocation to CombineDateAndTimeDuration as infallible
This is an editorial change in the Temporal proposal. See:
6860ad1
This commit is contained in:
parent
46c3406008
commit
e29c6d2a80
Notes:
github-actions[bot]
2024-12-05 21:06:42 +00:00
Author: https://github.com/trflynn89
Commit: e29c6d2a80
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2790
Reviewed-by: https://github.com/gmta ✅
1 changed files with 2 additions and 2 deletions
|
@ -475,8 +475,8 @@ ThrowCompletionOr<InternalDuration> difference_zoned_date_time(VM& vm, Crypto::S
|
|||
// 13. Let dateDifference be CalendarDateUntil(calendar, startDateTime.[[ISODate]], intermediateDateTime.[[ISODate]], dateLargestUnit).
|
||||
auto date_difference = calendar_date_until(vm, calendar, start_date_time.iso_date, intermediate_date_time.iso_date, date_largest_unit);
|
||||
|
||||
// 14. Return ? CombineDateAndTimeDuration(dateDifference, timeDuration).
|
||||
return TRY(combine_date_and_time_duration(vm, date_difference, move(time_duration)));
|
||||
// 14. Return ! CombineDateAndTimeDuration(dateDifference, timeDuration).
|
||||
return MUST(combine_date_and_time_duration(vm, date_difference, move(time_duration)));
|
||||
}
|
||||
|
||||
// 6.5.7 DifferenceZonedDateTimeWithRounding ( ns1, ns2, timeZone, calendar, largestUnit, roundingIncrement, smallestUnit, roundingMode ), https://tc39.es/proposal-temporal/#sec-temporal-differencezoneddatetimewithrounding
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue