Skip to content
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

dart2js returns false for 1 == 1.0. #4551

Closed
floitschG opened this issue Aug 16, 2012 · 3 comments
Closed

dart2js returns false for 1 == 1.0. #4551

floitschG opened this issue Aug 16, 2012 · 3 comments
Assignees
Milestone

Comments

@floitschG
Copy link
Contributor

When both operands to an equality operation are known to be numbers dart2js replaces the == by an === since it has the same semantics in JavaScript.
However if those operands are known at compile-time it will do the comparison in Dart semantics where, for instance, 1 === 1.0 is false.

This is a partial duplicate of 2887 since fixing 2887 will also fix this bug.

@floitschG
Copy link
Contributor Author

https://chromiumcodereview.appspot.com/10825386/


Set owner to @floitschG.
Added Started label.

@kasperl
Copy link

kasperl commented Sep 3, 2012

Added this to the M1 milestone.

@floitschG
Copy link
Contributor Author

Fixed in r11883


Added Fixed label.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants