-
Notifications
You must be signed in to change notification settings - Fork 1.7k
dart2js returns true for infinity is int #4984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 [email protected]
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: