Skip to content

dart2js and spec disagree about numerics #1533

Closed
@sethladd

Description

@sethladd

The following Dart code:

var x = 123;
print(x is! double);

will print TRUE in Dart VM and FALSE in JavaScript compiled from Frog.

The generated JavaScript code in question:

print((typeof(x) != 'number'));

doesn't match the intention of the original Dart code.

Metadata

Metadata

Assignees

Labels

closed-not-plannedClosed as we don't intend to take action on the reported issueweb-dart2js

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions