mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-13 13:02:28 +00:00
LibJS: Handle ZonedDateTime in GetTemporalCalendarWithISODefault
This commit is contained in:
parent
14e7eff43f
commit
fa0d6d1045
Notes:
sideshowbarker
2024-07-18 07:38:16 +09:00
Author: https://github.com/linusg
Commit: fa0d6d1045
Pull-request: https://github.com/SerenityOS/serenity/pull/9160
Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 3 additions and 1 deletions
|
@ -369,7 +369,9 @@ Object* get_temporal_calendar_with_iso_default(GlobalObject& global_object, Obje
|
|||
return &static_cast<PlainDateTime&>(item).calendar();
|
||||
if (is<PlainTime>(item))
|
||||
return &static_cast<PlainTime&>(item).calendar();
|
||||
// TODO: The rest of the Temporal built-ins (PlainMonthDay, PlainYearMonth, ZonedDateTime)
|
||||
if (is<ZonedDateTime>(item))
|
||||
return &static_cast<ZonedDateTime&>(item).calendar();
|
||||
// TODO: The rest of the Temporal built-ins (PlainMonthDay, PlainYearMonth)
|
||||
|
||||
// 2. Let calendar be ? Get(item, "calendar").
|
||||
auto calendar = item.get(vm.names.calendar);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue