mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
LibJS: Convert TimeZone AOs to ThrowCompletionOr
This commit is contained in:
parent
830d484d78
commit
cc00a726a8
Notes:
sideshowbarker
2024-07-18 03:53:49 +09:00
Author: https://github.com/IdanHo
Commit: cc00a726a8
Pull-request: https://github.com/SerenityOS/serenity/pull/10048
Reviewed-by: https://github.com/linusg ✅
12 changed files with 99 additions and 195 deletions
|
@ -167,7 +167,7 @@ PlainDateTime* to_temporal_date_time(GlobalObject& global_object, Value item, Ob
|
|||
auto* instant = create_temporal_instant(global_object, zoned_date_time.nanoseconds());
|
||||
|
||||
// ii. Return ? BuiltinTimeZoneGetPlainDateTimeFor(item.[[TimeZone]], instant, item.[[Calendar]]).
|
||||
return builtin_time_zone_get_plain_date_time_for(global_object, &zoned_date_time.time_zone(), *instant, zoned_date_time.calendar());
|
||||
return TRY_OR_DISCARD(builtin_time_zone_get_plain_date_time_for(global_object, &zoned_date_time.time_zone(), *instant, zoned_date_time.calendar()));
|
||||
}
|
||||
|
||||
// c. If item has an [[InitializedTemporalDate]] internal slot, then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue