Descriptiondart2js: Do not use JSDouble for native behavior return types.
Previously, a JS('double', ...) expression would be seen as having
the exact JSDouble class as return type. This is problematic since that
class is reserved for non-integer doubles, and the result is generally
not known to be non-integer.
For example, the sqrt function returns 'double' but sqrt(0) == 0 which
is an integer.
BUG=
R=floitsch@google.com
Committed: https://github.com/dart-lang/sdk/commit/b0905eadce3276f138258fb138b8f3e5496a4e73
Committed: https://github.com/dart-lang/sdk/commit/136ec727eeb798403cf047dd454a439f0d8285d3
Patch Set 1 #Patch Set 2 : Return JSNumber instead of double #Patch Set 3 : Revert + Unrevert #Patch Set 4 : Replace use of JS('double') #
Messages
Total messages: 8 (2 generated)
|