mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 22:17:44 +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:
parent
1f99538185
commit
4bba61fd59
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue