1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:47:35 +00:00

LibJS: Start implementing Temporal.PlainDate

This commit adds the PlainDate object itself, its constructor and
prototype (currently empty), and several required abstract operations.
This commit is contained in:
Idan Horowitz 2021-07-19 00:29:26 +03:00 committed by Linus Groh
parent ff6ca0f02d
commit cc00ccec41
19 changed files with 465 additions and 5 deletions

View file

@ -30,6 +30,10 @@ private:
Calendar* create_temporal_calendar(GlobalObject&, String const& identifier, FunctionObject* new_target = nullptr);
bool is_builtin_calendar(String const& identifier);
Calendar* get_builtin_calendar(GlobalObject&, String const& identifier);
Calendar* get_iso8601_calendar(GlobalObject&);
Object* to_temporal_calendar(GlobalObject&, Value);
Object* to_temporal_calendar_with_iso_default(GlobalObject&, Value);
bool is_iso_leap_year(i32 year);
i32 iso_days_in_month(i32 year, i32 month);