ceylon / ceylon-js

DEPRECATED
Apache License 2.0
54 stars 9 forks source link

`x % 0` does not throw "Division by Zero" exception #520

Closed quintesse closed 9 years ago

quintesse commented 9 years ago

Instead print(1 % 0) gives NaN.0

chochos commented 9 years ago

That's the problem with optimizing to native operators...

quintesse commented 9 years ago

But it works for 1 / 0 doesn't it? So aren't checking for that special case or how does that work?