diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp index 6d0a9b2566..0c22bd6cbd 100644 --- a/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp +++ b/Userland/Libraries/LibJS/Runtime/Temporal/ISO8601.cpp @@ -430,29 +430,17 @@ bool ISO8601Parser::parse_fractional_part() return true; } -// https://tc39.es/proposal-temporal/#prod-TimeFractionalPart -bool ISO8601Parser::parse_time_fractional_part() -{ - // TimeFractionalPart : - // FractionalPart - StateTransaction transaction { *this }; - if (!parse_fractional_part()) - return false; - m_state.parse_result.time_fractional_part = transaction.parsed_string_view(); - transaction.commit(); - return true; -} - // https://tc39.es/proposal-temporal/#prod-Fraction bool ISO8601Parser::parse_fraction() { // Fraction : - // DecimalSeparator TimeFractionalPart + // DecimalSeparator FractionalPart StateTransaction transaction { *this }; if (!parse_decimal_separator()) return false; - if (!parse_time_fractional_part()) + if (!parse_fractional_part()) return false; + m_state.parse_result.fractional_part = transaction.parsed_string_view(); transaction.commit(); return true; } |