1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 21:17:45 +00:00

LibJS: Convert PlainMonthDay AOs to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-09-16 02:11:23 +03:00 committed by Linus Groh
parent 229a5ce149
commit 5ea1810ada
5 changed files with 33 additions and 49 deletions

View file

@ -39,8 +39,8 @@ struct ISOMonthDay {
i32 reference_iso_year;
};
PlainMonthDay* to_temporal_month_day(GlobalObject&, Value item, Object const* options = nullptr);
PlainMonthDay* create_temporal_month_day(GlobalObject&, u8 iso_month, u8 iso_day, Object& calendar, i32 reference_iso_year, FunctionObject const* new_target = nullptr);
Optional<String> temporal_month_day_to_string(GlobalObject&, PlainMonthDay&, StringView show_calendar);
ThrowCompletionOr<PlainMonthDay*> to_temporal_month_day(GlobalObject&, Value item, Object const* options = nullptr);
ThrowCompletionOr<PlainMonthDay*> create_temporal_month_day(GlobalObject&, u8 iso_month, u8 iso_day, Object& calendar, i32 reference_iso_year, FunctionObject const* new_target = nullptr);
ThrowCompletionOr<String> temporal_month_day_to_string(GlobalObject&, PlainMonthDay&, StringView show_calendar);
}