Closed opensorceror closed 7 years ago
In ScalaFiddle, a divide by zero operation returns 0 when the numerator and denominator are both integers.
https://scalafiddle.io/sf/QHrybLv/1
This is due to JS semantics and how some things are not checked by Scala.js due to performance reasons. http://www.scala-js.org/doc/semantics.html
In ScalaFiddle, a divide by zero operation returns 0 when the numerator and denominator are both integers.
https://scalafiddle.io/sf/QHrybLv/1