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

Printing 5.0 is different in dart2js and vm #15881

Closed
sethladd opened this issue Jan 3, 2014 · 3 comments
Closed

Printing 5.0 is different in dart2js and vm #15881

sethladd opened this issue Jan 3, 2014 · 3 comments
Labels
closed-duplicate Closed in favor of an existing report web-dart2js

Comments

@sethladd
Copy link
Contributor

sethladd commented Jan 3, 2014

(From a customer)

Oh, and I also found another difference between dart and dart2js:

double x = 5.0;
print("x is $x") ;

Prints 5.0 in dart, and 5 in JavaScript. This actually managed to cause me a bug because I used this functionality in shader code to inline constants.

@sethladd
Copy link
Contributor Author

sethladd commented Jan 3, 2014

See also Issue #1533

@sethladd
Copy link
Contributor Author

sethladd commented Jan 3, 2014

See also Issue #15883 which asks the analyzer to provide a hint for this.

@sethladd
Copy link
Contributor Author

sethladd commented Jan 3, 2014

Added Duplicate label.
Marked as being merged into #1533.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report web-dart2js
Projects
None yet
Development

No branches or pull requests

2 participants