1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:37:34 +00:00

LibJS: Make resolve_iso_month() fields Object a const&

This only calls Object::get() on the fields Object, which is
const-qualified.
This commit is contained in:
Linus Groh 2021-09-09 22:16:42 +01:00
parent 1f99538185
commit 4bba61fd59
2 changed files with 2 additions and 2 deletions

View file

@ -732,7 +732,7 @@ String build_iso_month_code(u8 month)
}
// 12.1.37 ResolveISOMonth ( fields ), https://tc39.es/proposal-temporal/#sec-temporal-resolveisomonth
double resolve_iso_month(GlobalObject& global_object, Object& fields)
double resolve_iso_month(GlobalObject& global_object, Object const& fields)
{
auto& vm = global_object.vm();

View file

@ -64,7 +64,7 @@ u8 to_iso_day_of_week(i32 year, u8 month, u8 day);
u16 to_iso_day_of_year(i32 year, u8 month, u8 day);
u8 to_iso_week_of_year(i32 year, u8 month, u8 day);
String build_iso_month_code(u8 month);
double resolve_iso_month(GlobalObject&, Object& fields);
double resolve_iso_month(GlobalObject&, Object const& fields);
Optional<ISODate> iso_date_from_fields(GlobalObject&, Object const& fields, Object const& options);
Optional<ISOYearMonth> iso_year_month_from_fields(GlobalObject&, Object const& fields, Object const& options);
Optional<ISOMonthDay> iso_month_day_from_fields(GlobalObject&, Object const& fields, Object const& options);