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
Normative: Fix fraction substring in ParseTimeZoneOffsetString
The fraction variable captures the result of the
TimeZoneUTCOffsetFraction production, which is the two productions
DecimalSeparator and TimeZoneUTCOffsetFractionalPart, meaning that the
result will contain a decimal separator.
When it later appends zeros and gets a substring of the first nine
characters, that separator character is still included and will cause
ToIntegerOrInfinity to return an incorrect result (always 0).
Fix this by changing the substring range to '1 to 10' so the result
doesn't contain the decimal separator and the AO works as expected.
This mistake was already present in the initial revision of the
ParseTimeZoneOffsetString AO when it was added in 01f3c55.
0 commit comments