summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-07-05 19:55:04 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-05 23:15:52 +0200
commit8733fbae76bf13cc8b54cfff99d79f49113a4238 (patch)
tree462baec1a29ce458bf81aa6b17f24bdbbc81a817 /Userland/Libraries
parente1a64180150fe554558642d2b7f72d329ab393cd (diff)
downloadserenity-8733fbae76bf13cc8b54cfff99d79f49113a4238.zip
LibJS: Rename TimeHourMinuteBasicFormatNotAmbiguous
This is an editorial change in the Temporal spec. See: https://github.com/tc39/proposal-temporal/commit/70de75b
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp10
-rw-r--r--Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h2
2 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp
index 0e1784fe8f..eefb0b5bc6 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp
@@ -1065,10 +1065,10 @@ bool ISO8601Parser::parse_time_spec()
return true;
}
-// https://tc39.es/proposal-temporal/#prod-TimeHourMinuteBasicFormatNotAmbiguous
-bool ISO8601Parser::parse_time_hour_minute_basic_format_not_ambiguous()
+// https://tc39.es/proposal-temporal/#prod-TimeHourMinuteBasicFormatNotAmbiguousWithMonthDay
+bool ISO8601Parser::parse_time_hour_minute_basic_format_not_ambiguous_with_month_day()
{
- // TimeHourMinuteBasicFormatNotAmbiguous :
+ // TimeHourMinuteBasicFormatNotAmbiguousWithMonthDay :
// TimeHourNotValidMonth TimeMinute
// TimeHour TimeMinuteNotValidDay
// TimeHourNotThirtyOneDayMonth TimeMinuteThirtyOneOnly
@@ -1111,7 +1111,7 @@ bool ISO8601Parser::parse_time_spec_with_optional_time_zone_not_ambiguous()
// TimeHour TimeZoneNumericUTCOffsetNotAmbiguousWithDayOfMonth[opt] TimeZoneBracketedAnnotation[opt]
// TimeHourNotValidMonth TimeZone
// TimeHour : TimeMinute TimeZone[opt]
- // TimeHourMinuteBasicFormatNotAmbiguous TimeZoneBracketedAnnotation[opt]
+ // TimeHourMinuteBasicFormatNotAmbiguousWithMonthDay TimeZoneBracketedAnnotation[opt]
// TimeHour TimeMinute TimeZoneNumericUTCOffsetNotAmbiguousWithMonth TimeZoneBracketedAnnotation[opt]
// TimeHour : TimeMinute : TimeSecond TimeFraction[opt] TimeZone[opt]
// TimeHour TimeMinute TimeSecondNotValidMonth TimeZone[opt]
@@ -1172,7 +1172,7 @@ bool ISO8601Parser::parse_time_spec_with_optional_time_zone_not_ambiguous()
}
{
StateTransaction transaction { *this };
- if (parse_time_hour_minute_basic_format_not_ambiguous()) {
+ if (parse_time_hour_minute_basic_format_not_ambiguous_with_month_day()) {
(void)parse_time_zone_bracketed_annotation();
transaction.commit();
return true;
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h
index 6a01204600..4694053ec4 100644
--- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h
+++ b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.h
@@ -145,7 +145,7 @@ public:
[[nodiscard]] bool parse_calendar_name();
[[nodiscard]] bool parse_calendar();
[[nodiscard]] bool parse_time_spec();
- [[nodiscard]] bool parse_time_hour_minute_basic_format_not_ambiguous();
+ [[nodiscard]] bool parse_time_hour_minute_basic_format_not_ambiguous_with_month_day();
[[nodiscard]] bool parse_time_spec_with_optional_time_zone_not_ambiguous();
[[nodiscard]] bool parse_time_spec_separator();
[[nodiscard]] bool parse_date_time();