mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 15:47:45 +00:00
LibJS: Make Temporal foo_from_fields() AO field/options Object a const*
This is a bit of a lie as the Value(Object const*) ctor will const_cast them in invoke(), but at least it ensures that nothing else in the function relies on getting non-const Objects. Perhaps we can have an actual Object const* Value in the future as well.
This commit is contained in:
parent
4be2aeca00
commit
1f99538185
2 changed files with 12 additions and 12 deletions
|
@ -51,9 +51,9 @@ Value calendar_era_year(GlobalObject&, Object& calendar, Object& date_like);
|
|||
Object* to_temporal_calendar(GlobalObject&, Value);
|
||||
Object* to_temporal_calendar_with_iso_default(GlobalObject&, Value);
|
||||
Object* get_temporal_calendar_with_iso_default(GlobalObject&, Object&);
|
||||
PlainDate* date_from_fields(GlobalObject&, Object& calendar, Object& fields, Object& options);
|
||||
PlainYearMonth* year_month_from_fields(GlobalObject&, Object& calendar, Object& fields, Object* options = nullptr);
|
||||
PlainMonthDay* month_day_from_fields(GlobalObject& global_object, Object& calendar, Object& fields, Object* options = nullptr);
|
||||
PlainDate* date_from_fields(GlobalObject&, Object& calendar, Object const& fields, Object const& options);
|
||||
PlainYearMonth* year_month_from_fields(GlobalObject&, Object& calendar, Object const& fields, Object const* options = nullptr);
|
||||
PlainMonthDay* month_day_from_fields(GlobalObject& global_object, Object& calendar, Object const& fields, Object const* options = nullptr);
|
||||
String format_calendar_annotation(StringView id, StringView show_calendar);
|
||||
bool calendar_equals(GlobalObject&, Object& one, Object& two);
|
||||
Object* consolidate_calendars(GlobalObject&, Object& one, Object& two);
|
||||
|
@ -65,9 +65,9 @@ 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);
|
||||
Optional<ISODate> iso_date_from_fields(GlobalObject&, Object& fields, Object& options);
|
||||
Optional<ISOYearMonth> iso_year_month_from_fields(GlobalObject&, Object& fields, Object& options);
|
||||
Optional<ISOMonthDay> iso_month_day_from_fields(GlobalObject&, Object& fields, Object& options);
|
||||
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);
|
||||
i32 iso_year(Object& temporal_object);
|
||||
u8 iso_month(Object& temporal_object);
|
||||
String iso_month_code(Object& temporal_object);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue