ToNumber incorrectly accepts "INFINITY" #885
Labels
confirmed
issue reported has been reproduced
fixed - please verify
Issue has been fixed. Please verify and close.
Environment: XS 11.6.0 32 4
Description
XS incorrectly converts a string like "INFINITY" into
Infinity
rather thanNaN
.Steps to Reproduce
Expected behavior
Only the "Infinity" capitalization should be given special treatment, with all other variants converted to
NaN
per StringToNumber parsing input against StringNumericLiteral.Actual behavior
XS privileges both "Infinity" and "INFINITY".
The text was updated successfully, but these errors were encountered: