You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Editorial: Rewrite duration grammar to avoid extra fraction checks
Suggested by Anba, this is an editorial improvement to make Duration
strings like PT3.5H40M (where a component with a fractional part is
followed by another component) invalid according to the ISO 8601 grammar.
Previously, such strings were valid according to the grammar, but weeded
out with an extra check.
In order to test the new grammar productions, brings validStrings.mjs up
to date. Previously, support for minute and hour fractional parts had been
left out of validStrings.mjs altogether.
There are already tests for the invalid strings in test262.
Closes: #2282
UPSTREAM_COMMIT=2b21aa1b26da178b2fe179ec4c0379945c9edd61
0 commit comments