mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-19 08:51:57 +00:00
LibJS: Mark TemporalDurationFromInternal as infallible in difference AOs
This is an editorial change in the Temporal proposal. See:
76c6612
This commit is contained in:
parent
81b38c66a8
commit
4f07cddb2d
Notes:
github-actions[bot]
2024-12-05 21:07:07 +00:00
Author: https://github.com/trflynn89
Commit: 4f07cddb2d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2790
Reviewed-by: https://github.com/gmta ✅
3 changed files with 6 additions and 6 deletions
|
@ -259,8 +259,8 @@ ThrowCompletionOr<GC::Ref<Duration>> difference_temporal_plain_year_month(VM& vm
|
|||
duration = TRY(round_relative_duration(vm, move(duration), dest_epoch_ns, iso_date_time, {}, calendar, settings.largest_unit, settings.rounding_increment, settings.smallest_unit, settings.rounding_mode));
|
||||
}
|
||||
|
||||
// 17. Let result be ? TemporalDurationFromInternal(duration, DAY).
|
||||
auto result = TRY(temporal_duration_from_internal(vm, duration, Unit::Day));
|
||||
// 17. Let result be ! TemporalDurationFromInternal(duration, DAY).
|
||||
auto result = MUST(temporal_duration_from_internal(vm, duration, Unit::Day));
|
||||
|
||||
// 18. If operation is SINCE, set result to CreateNegatedTemporalDuration(result).
|
||||
if (operation == DurationOperation::Since)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue