mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
LibJS: Rename TimeZoneNumericUTCOffsetNotAmbiguousAllowedNegative
This is an editorial change in the Temporal spec.
See: 9ddd57e
This commit is contained in:
parent
8dcd0d4a06
commit
e1a6418015
2 changed files with 6 additions and 6 deletions
|
@ -780,10 +780,10 @@ bool ISO8601Parser::parse_time_zone_numeric_utc_offset_not_ambiguous_with_day_of
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://tc39.es/proposal-temporal/#prod-TimeZoneNumericUTCOffsetNotAmbiguousAllowedNegativeHour
|
// https://tc39.es/proposal-temporal/#prod-TimeZoneNumericUTCOffsetNotAmbiguousWithMonth
|
||||||
bool ISO8601Parser::parse_time_zone_numeric_utc_offset_not_ambiguous_allowed_negative_hour()
|
bool ISO8601Parser::parse_time_zone_numeric_utc_offset_not_ambiguous_with_month()
|
||||||
{
|
{
|
||||||
// TimeZoneNumericUTCOffsetNotAmbiguousAllowedNegativeHour :
|
// TimeZoneNumericUTCOffsetNotAmbiguousWithMonth :
|
||||||
// TimeZoneNumericUTCOffsetNotAmbiguousWithDayOfMonth
|
// TimeZoneNumericUTCOffsetNotAmbiguousWithDayOfMonth
|
||||||
// - TimeHourNotValidMonth
|
// - TimeHourNotValidMonth
|
||||||
StateTransaction transaction { *this };
|
StateTransaction transaction { *this };
|
||||||
|
@ -1112,7 +1112,7 @@ bool ISO8601Parser::parse_time_spec_with_optional_time_zone_not_ambiguous()
|
||||||
// TimeHourNotValidMonth TimeZone
|
// TimeHourNotValidMonth TimeZone
|
||||||
// TimeHour : TimeMinute TimeZone[opt]
|
// TimeHour : TimeMinute TimeZone[opt]
|
||||||
// TimeHourMinuteBasicFormatNotAmbiguous TimeZoneBracketedAnnotation[opt]
|
// TimeHourMinuteBasicFormatNotAmbiguous TimeZoneBracketedAnnotation[opt]
|
||||||
// TimeHour TimeMinute TimeZoneNumericUTCOffsetNotAmbiguousAllowedNegativeHour TimeZoneBracketedAnnotation[opt]
|
// TimeHour TimeMinute TimeZoneNumericUTCOffsetNotAmbiguousWithMonth TimeZoneBracketedAnnotation[opt]
|
||||||
// TimeHour : TimeMinute : TimeSecond TimeFraction[opt] TimeZone[opt]
|
// TimeHour : TimeMinute : TimeSecond TimeFraction[opt] TimeZone[opt]
|
||||||
// TimeHour TimeMinute TimeSecondNotValidMonth TimeZone[opt]
|
// TimeHour TimeMinute TimeSecondNotValidMonth TimeZone[opt]
|
||||||
// TimeHour TimeMinute TimeSecond TimeFraction TimeZone[opt]
|
// TimeHour TimeMinute TimeSecond TimeFraction TimeZone[opt]
|
||||||
|
@ -1144,7 +1144,7 @@ bool ISO8601Parser::parse_time_spec_with_optional_time_zone_not_ambiguous()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (parse_time_minute()) {
|
} else if (parse_time_minute()) {
|
||||||
if (parse_time_zone_numeric_utc_offset_not_ambiguous_allowed_negative_hour()) {
|
if (parse_time_zone_numeric_utc_offset_not_ambiguous_with_month()) {
|
||||||
(void)parse_time_zone_bracketed_annotation();
|
(void)parse_time_zone_bracketed_annotation();
|
||||||
transaction.commit();
|
transaction.commit();
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -130,7 +130,7 @@ public:
|
||||||
[[nodiscard]] bool parse_time_zone_numeric_utc_offset();
|
[[nodiscard]] bool parse_time_zone_numeric_utc_offset();
|
||||||
[[nodiscard]] bool parse_time_zone_utc_offset();
|
[[nodiscard]] bool parse_time_zone_utc_offset();
|
||||||
[[nodiscard]] bool parse_time_zone_numeric_utc_offset_not_ambiguous_with_day_of_month();
|
[[nodiscard]] bool parse_time_zone_numeric_utc_offset_not_ambiguous_with_day_of_month();
|
||||||
[[nodiscard]] bool parse_time_zone_numeric_utc_offset_not_ambiguous_allowed_negative_hour();
|
[[nodiscard]] bool parse_time_zone_numeric_utc_offset_not_ambiguous_with_month();
|
||||||
[[nodiscard]] bool parse_time_zone_utc_offset_name();
|
[[nodiscard]] bool parse_time_zone_utc_offset_name();
|
||||||
[[nodiscard]] bool parse_tz_leading_char();
|
[[nodiscard]] bool parse_tz_leading_char();
|
||||||
[[nodiscard]] bool parse_tz_char();
|
[[nodiscard]] bool parse_tz_char();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue