LibJS: Convert ZonedDateTime AOs to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-09-16 00:59:40 +03:00 committed by Linus Groh
commit 1822b2938e
Notes: sideshowbarker 2024-07-18 03:53:56 +09:00
5 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ Value ZonedDateTimeConstructor::construct(FunctionObject& new_target)
return {};
// 6. Return ? CreateTemporalZonedDateTime(epochNanoseconds, timeZone, calendar, NewTarget).
return create_temporal_zoned_date_time(global_object, *epoch_nanoseconds, *time_zone, *calendar, &new_target);
return TRY_OR_DISCARD(create_temporal_zoned_date_time(global_object, *epoch_nanoseconds, *time_zone, *calendar, &new_target));
}
}