diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp index 006eb41326b..e3f45970602 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/Calendar.cpp @@ -727,7 +727,8 @@ i32 iso_year(Object& temporal_object) return static_cast(temporal_object).iso_year(); if (is(temporal_object)) return static_cast(temporal_object).iso_year(); - // TODO: PlainMonthDay + if (is(temporal_object)) + return static_cast(temporal_object).iso_year(); VERIFY_NOT_REACHED(); } @@ -744,7 +745,8 @@ u8 iso_month(Object& temporal_object) return static_cast(temporal_object).iso_month(); if (is(temporal_object)) return static_cast(temporal_object).iso_month(); - // TODO: PlainMonthDay + if (is(temporal_object)) + return static_cast(temporal_object).iso_month(); VERIFY_NOT_REACHED(); } @@ -761,7 +763,8 @@ String iso_month_code(Object& temporal_object) return build_iso_month_code(static_cast(temporal_object).iso_month()); if (is(temporal_object)) return build_iso_month_code(static_cast(temporal_object).iso_month()); - // TODO: PlainMonthDay + if (is(temporal_object)) + return build_iso_month_code(static_cast(temporal_object).iso_month()); VERIFY_NOT_REACHED(); } @@ -778,7 +781,8 @@ u8 iso_day(Object& temporal_object) return static_cast(temporal_object).iso_day(); if (is(temporal_object)) return static_cast(temporal_object).iso_day(); - // TODO: PlainMonthDay + if (is(temporal_object)) + return static_cast(temporal_object).iso_day(); VERIFY_NOT_REACHED(); }