-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Description
On Windows (built with Visual Studio 2017, VC Tools 140):
xst.exe -e "print(NaN)"
-NaN
Prints -NaN instead of NaN. Same result when NaN is the result of an arithmetic operation:
xst.exe -e "print(void 0 + 1)"
-NaN
Interestingly, this gives the correct output:
xst.exe -e "print(-NaN)"
NaN
On Linux (built with GCC 6.3.0), NaN is represented correctly:
./xst -e "print(NaN)"
NaN
But this is incorrect:
./xst -e "print(-NaN)"
-NaN
NaN should not have a sign.
These are the relevant sections of the ECMAScript 6 specs:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels