Hermes plans to target ECMAScript 2015 (ES6), with some carefully considered exceptions.
- Symbols (including most well-known Symbols)
- Iteration (with
[Symbol.iterator]) for..ofloops- Destructuring assignment (with array and object "rest" properties)
- Template string literals
- Generators (
function*andyield) - TypedArrays
- Arrow functions
- All ES6 JS library functions
- Set/Map
- WeakSet/WeakMap
- ES6 String searching functions
- ES6 Array searching functions
letandconst(block scoped variables, with support for the temporal dead zone)- Classes and method definitions
- Computed property keys on object literals
- ES modules (
importandexport) IntlAPI glue for Android has been added, in order to enable community contribution of a complete, spec-compliant implementation.- Reflection (
ReflectandProxy) is opt-in until it is stablilized.
- Realms
withstatements- Local mode
eval()(use and introduce local variables) Symbol.speciesand its interactions with JS library functions- use of
constructorproperty when creating new Arrays in Array.prototype methods Symbol.unscopables(Hermes does not supportwith)- Other features added to ECMAScript after ES6 not listed under "Supported"
Function.prototype.toStringcannot show source because Hermes executes from bytecodeargumentschanges in non-strict mode will not sync with named parameters