As there are many JavaScript versions with different libraries/classes available, it is vital that JavaScript extension developers know which language features and libraries they can depend on.
Java scripts are executed under Mozilla Rhino 1.7.15 framework. According to Rhino release notes : ECMAScript 6.