mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
LibJS: Accept and ignore calendar annotation in Instant strings
This is a normative change in the Temporal spec.
See: 3cd9669
This commit is contained in:
parent
54bb6bf2c0
commit
9643a5c63f
2 changed files with 27 additions and 1 deletions
|
@ -1592,13 +1592,14 @@ bool ISO8601Parser::parse_duration()
|
|||
bool ISO8601Parser::parse_temporal_instant_string()
|
||||
{
|
||||
// TemporalInstantString :
|
||||
// Date TimeSpecSeparator[opt] TimeZoneOffsetRequired
|
||||
// Date TimeSpecSeparator[opt] TimeZoneOffsetRequired Calendar[opt]
|
||||
StateTransaction transaction { *this };
|
||||
if (!parse_date())
|
||||
return false;
|
||||
(void)parse_time_spec_separator();
|
||||
if (!parse_time_zone_offset_required())
|
||||
return false;
|
||||
(void)parse_calendar();
|
||||
transaction.commit();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue