mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 16:37:47 +00:00
LibJS: Refactor Temporal parse AOs
This is an editorial change in the Temporal spec.
See: 7fe29eb
This commit is contained in:
parent
86e22abd76
commit
3bb94dd62e
4 changed files with 254 additions and 260 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue