Hall of Fame
The Hall of Fame highlights occasions where the Scala.js project has contributed to other, larger projects.
Node.js/V8: Integer Arithmetic Bug
Prior to Node.js 0.10.29, comparing
Int.MinValue could yield a wrong result.
Google Closure Compiler: Bad String Constant Folding
The Google Closure Compiler (GCC) applied a wrong algorithm to convert number literals to strings during constant folding:
Instead of a conversion conforming to the ECMAScript standard, GCC used Java’s implementation of
For example, GCC constant folded the following code:
Whereas the following would be correct:
React: Dependency on Inheritance of Static Members
In the initial plans for React 0.14, React checked for the static flag
isReactClass on classes extending
In ECMAScript 6, such static members are inherited by subclasses:
While this behavior is specified in ECMAScript 6, there is no reliable way to reproduce it in pure ECMAScript 5. This would have essentially meant that React would not work on some fully ECMAScript 5 compliant platforms, a notable example being Internet Explorer 10 and earlier.