mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS: Make ToDateDurationRecordWithoutTime infallible
This is an editorial change in the Temporal proposal. See:
05017b9
This commit is contained in:
parent
4f07cddb2d
commit
4cbb5661d0
Notes:
github-actions[bot]
2024-12-05 21:07:00 +00:00
Author: https://github.com/trflynn89
Commit: 4cbb5661d0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2790
Reviewed-by: https://github.com/gmta ✅
4 changed files with 8 additions and 8 deletions
|
@ -407,8 +407,8 @@ ThrowCompletionOr<GC::Ref<PlainDate>> add_duration_to_date(VM& vm, ArithmeticOpe
|
|||
if (operation == ArithmeticOperation::Subtract)
|
||||
duration = create_negated_temporal_duration(vm, duration);
|
||||
|
||||
// 4. Let dateDuration be ? ToDateDurationRecordWithoutTime(duration).
|
||||
auto date_duration = TRY(to_date_duration_record_without_time(vm, duration));
|
||||
// 4. Let dateDuration be ToDateDurationRecordWithoutTime(duration).
|
||||
auto date_duration = to_date_duration_record_without_time(vm, duration);
|
||||
|
||||
// 5. Let resolvedOptions be ? GetOptionsObject(options).
|
||||
auto resolved_options = TRY(get_options_object(vm, options));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue