mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 09:00:22 +00:00
LibJS: Handle PlainMonthDay in ToTemporalCalendar
This commit is contained in:
parent
be07e2e91b
commit
1e54e37228
Notes:
sideshowbarker
2024-07-18 05:42:12 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/1e54e372281 Pull-request: https://github.com/SerenityOS/serenity/pull/9429 Reviewed-by: https://github.com/IdanHo ✅
1 changed files with 3 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibJS/Runtime/Temporal/CalendarConstructor.h>
|
||||
#include <LibJS/Runtime/Temporal/PlainDate.h>
|
||||
#include <LibJS/Runtime/Temporal/PlainDateTime.h>
|
||||
#include <LibJS/Runtime/Temporal/PlainMonthDay.h>
|
||||
#include <LibJS/Runtime/Temporal/PlainTime.h>
|
||||
#include <LibJS/Runtime/Temporal/PlainYearMonth.h>
|
||||
#include <LibJS/Runtime/Temporal/ZonedDateTime.h>
|
||||
|
@ -300,7 +301,8 @@ Object* to_temporal_calendar(GlobalObject& global_object, Value temporal_calenda
|
|||
return &static_cast<PlainDate&>(temporal_calendar_like_object).calendar();
|
||||
if (is<PlainDateTime>(temporal_calendar_like_object))
|
||||
return &static_cast<PlainDateTime&>(temporal_calendar_like_object).calendar();
|
||||
// TODO: PlainMonthDay
|
||||
if (is<PlainMonthDay>(temporal_calendar_like_object))
|
||||
return &static_cast<PlainMonthDay&>(temporal_calendar_like_object).calendar();
|
||||
if (is<PlainTime>(temporal_calendar_like_object))
|
||||
return &static_cast<PlainTime&>(temporal_calendar_like_object).calendar();
|
||||
if (is<PlainYearMonth>(temporal_calendar_like_object))
|
||||
|
|
Loading…
Reference in a new issue