1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:47:35 +00:00

LibJS: Make regulate_iso_date() and iso_date_from_fields() use ISODate

No need for TemporalDate, we don't use the calendar field here anyway.
This commit is contained in:
Linus Groh 2021-08-04 22:28:21 +01:00 committed by Andreas Kling
parent dd58d0f650
commit e036f4a786
5 changed files with 8 additions and 8 deletions

View file

@ -8,7 +8,7 @@
#pragma once
#include <LibJS/Runtime/Object.h>
#include <LibJS/Runtime/Temporal/AbstractOperations.h>
#include <LibJS/Runtime/Temporal/PlainDate.h>
#include <LibJS/Runtime/Value.h>
namespace JS::Temporal {
@ -58,7 +58,7 @@ 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<TemporalDate> iso_date_from_fields(GlobalObject&, Object& fields, Object& options);
Optional<ISODate> iso_date_from_fields(GlobalObject&, Object& fields, Object& options);
i32 iso_year(Object& temporal_object);
u8 iso_month(Object& temporal_object);
String iso_month_code(Object& temporal_object);