1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 19:18:12 +00:00

LibJS: Implement parsing of TemporalDateString

This commit is contained in:
Linus Groh 2021-11-19 18:14:13 +00:00
parent 3f1af7c05f
commit 02e7de2cba
8 changed files with 27 additions and 13 deletions

View file

@ -459,9 +459,18 @@ bool ISO8601Parser::parse_calendar_date_time()
return true;
}
// https://tc39.es/proposal-temporal/#prod-TemporalDateString
bool ISO8601Parser::parse_temporal_date_string()
{
// TemporalDateString :
// CalendarDateTime
return parse_calendar_date_time();
}
#define JS_ENUMERATE_ISO8601_PRODUCTION_PARSERS
}
#define JS_ENUMERATE_ISO8601_PRODUCTION_PARSERS \
__JS_ENUMERATE(TemporalDateString, parse_temporal_date_string)
Optional<ParseResult> parse_iso8601(Production production, StringView input)
{