All the available output modes.
All the available output modes. There are listed in decreasing order of "importance", as judged by whoever maintains the back-ends.
The default output mode.
The default output mode. This is always the first element of All
Legacy output mode where everything is stored in a global ScalaJS variable.
Legacy output mode where everything is stored in a global ScalaJS variable. This is suited to the special Rhino interpreter.
Modern output mode compliant with ECMAScript 5.1 in a function scope.
Modern output mode compliant with ECMAScript 5.1 in a function scope. This is the default output mode used by fastOpt and fullOpt. The output must be enclosed in an anonymous function isolating the code in a dedicated scope.
Experimental output mode compliant with ECMAScript 6 in a function scope.
Experimental output mode compliant with ECMAScript 6 in a function scope.
This output mode assumes that the target platform supports ECMAScript 6, at least for the following aspects:
* Classes * let and const * Rest parameters and the spread operator (...args) * New methods in Math * Symbols and the "well-known symbol" Symbol.iterator
The output must be enclosed in an anonymous function isolating the code in a dedicated scope.
(Since version 0.6.8) Support for ES6 Strong Mode was removed. Use ECMAScript6 instead.