mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
LibJS: Convert ZonedDateTime AOs to ThrowCompletionOr
This commit is contained in:
parent
5a4c90fcb1
commit
1822b2938e
5 changed files with 7 additions and 7 deletions
|
@ -254,7 +254,7 @@ ZonedDateTime* system_zoned_date_time(GlobalObject& global_object, Value tempora
|
|||
auto* ns = system_utc_epoch_nanoseconds(global_object);
|
||||
|
||||
// 5. Return ? CreateTemporalZonedDateTime(ns, timeZone, calendar).
|
||||
return create_temporal_zoned_date_time(global_object, *ns, *time_zone, *calendar);
|
||||
return TRY_OR_DISCARD(create_temporal_zoned_date_time(global_object, *ns, *time_zone, *calendar));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue