1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:37:44 +00:00

LibJS: Make new_target parameter of all Temporal AOs a const*

These are passed to ordinary_create_from_constructor() in each case,
which takes the parameter as a const&, so these can also be const.
This commit is contained in:
Linus Groh 2021-09-09 21:10:12 +01:00
parent cf71805aa8
commit e4c07c5b8f
20 changed files with 20 additions and 20 deletions

View file

@ -40,7 +40,7 @@ struct ISODate {
u8 day;
};
PlainDate* create_temporal_date(GlobalObject&, i32 iso_year, u8 iso_month, u8 iso_day, Object& calendar, FunctionObject* new_target = nullptr);
PlainDate* create_temporal_date(GlobalObject&, i32 iso_year, u8 iso_month, u8 iso_day, Object& calendar, FunctionObject const* new_target = nullptr);
PlainDate* to_temporal_date(GlobalObject&, Value item, Object* options = nullptr);
Optional<ISODate> regulate_iso_date(GlobalObject&, double year, double month, double day, StringView overflow);
bool is_valid_iso_date(i32 year, u8 month, u8 day);