mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
LibJS: Handle PlainYearMonth in GetTemporalCalendarWithISODefault
This commit is contained in:
parent
2aec6653c4
commit
4ba5df7145
1 changed files with 3 additions and 1 deletions
|
@ -370,11 +370,13 @@ Object* get_temporal_calendar_with_iso_default(GlobalObject& global_object, Obje
|
|||
return &static_cast<PlainDate&>(item).calendar();
|
||||
if (is<PlainDateTime>(item))
|
||||
return &static_cast<PlainDateTime&>(item).calendar();
|
||||
// TODO: PlainMonthDay
|
||||
if (is<PlainTime>(item))
|
||||
return &static_cast<PlainTime&>(item).calendar();
|
||||
if (is<PlainYearMonth>(item))
|
||||
return &static_cast<PlainYearMonth&>(item).calendar();
|
||||
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