diff options
author | Linus Groh <mail@linusgroh.de> | 2021-08-04 22:28:21 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-05 19:19:40 +0200 |
commit | e036f4a78616a1eb72d2d372eda78724fb917fa3 (patch) | |
tree | c80998bff4a13ad52cbe1b721b7f76722ae962ef /Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h | |
parent | dd58d0f6508606993d67df1e256ebd563212be71 (diff) | |
download | serenity-e036f4a78616a1eb72d2d372eda78724fb917fa3.zip |
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.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h index 6cab0c015d..b0985fe52d 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h +++ b/Userland/Libraries/LibJS/Runtime/Temporal/PlainDate.h @@ -7,7 +7,6 @@ #pragma once -#include <LibJS/Runtime/Temporal/AbstractOperations.h> #include <LibJS/Runtime/Value.h> namespace JS::Temporal { @@ -43,7 +42,7 @@ struct ISODate { PlainDate* create_temporal_date(GlobalObject&, i32 iso_year, u8 iso_month, u8 iso_day, Object& calendar, FunctionObject* new_target = nullptr); PlainDate* to_temporal_date(GlobalObject&, Value item, Object* options = nullptr); -Optional<TemporalDate> regulate_iso_date(GlobalObject&, double year, double month, double day, String const& overflow); +Optional<ISODate> regulate_iso_date(GlobalObject&, double year, double month, double day, String const& overflow); bool is_valid_iso_date(i32 year, u8 month, u8 day); ISODate balance_iso_date(i32 year, i32 month, i32 day); i8 compare_iso_date(i32 year1, u8 month1, u8 day1, i32 year2, u8 month2, u8 day2); |