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

LibJS: Refactor Temporal parse AOs

This is an editorial change in the Temporal spec.

See: 7fe29eb
This commit is contained in:
Linus Groh 2022-06-09 20:45:10 +01:00 committed by Andreas Kling
parent 86e22abd76
commit 3bb94dd62e
4 changed files with 254 additions and 260 deletions

View file

@ -36,7 +36,7 @@ struct ParseResult {
Optional<StringView> time_zone_utc_offset_hour;
Optional<StringView> time_zone_utc_offset_minute;
Optional<StringView> time_zone_utc_offset_second;
Optional<StringView> time_zone_utc_offset_fractional_part;
Optional<StringView> time_zone_utc_offset_fraction;
Optional<StringView> time_zone_iana_name;
Optional<StringView> duration_years;
Optional<StringView> duration_months;
@ -60,6 +60,7 @@ enum class Production {
TemporalYearMonthString,
TemporalZonedDateTimeString,
TemporalCalendarString,
TimeZoneNumericUTCOffset,
};
Optional<ParseResult> parse_iso8601(Production, StringView);