-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
dart2js returns true for infinity is int #4984
Comments
Removed this from the Later milestone. |
Added this to the M2 milestone. |
This is also a problem for -0.0. |
Added TriageForM5 label. |
Removed TriageForM5 label. |
Removed this from the Later milestone. |
Removed Oldschool-Milestone-Later label. |
We cannot easily fix that Infinity and -0.0 report as 'is int'. In the VM, int There is a similar problem with Infinity. What is the type of |
This issue was originally filed by ngeoffray@google.com
See test language/infinity_test.dart. dart2js uses Math.floor(x) == x for making an int check, and infinity returns true to that operation.
The text was updated successfully, but these errors were encountered: