-
Big topic, see [MDN Modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) for some primer
Depends on [Support ES5 this handling in strict mode](https://github.com/mozilla/…
-
While Rhino has a `const` implementation, it is based on a draft EcmaScript specification that precedes the official ECMAScript 2015 specification in which `const` got introduced. As such, the current…
-
Are there any plans in the near future to implement classes and inheritance in Rhino? And other OO related features described here: https://medium.com/ecmascript-2015/es6-classes-and-inheritance-60780…
-
ES2015 standardized the behavior of the function.name property. Rhino doesn't comply.
See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Function/name, https://2a…
-
Adding
```groovy
js {
browser {
compilerOptions {
target = 'es2015'
}
}
}
```
to a module with the Zipline plugin causes
```
Caused by: java.util.NoSuchElementException: …
-
```java
// default values inside destructuring assignments,
// like 'var [a = 10] = b' or 'var {a: b = 10} = c',
// are not supported
reportError(…
-
I recommend translating the syntax to ES6. This way the code is way more readable, maintainable and makes use of some new features like Maps (for localisation), module imports and exports (for code sp…
-
It's 2019, and ES2015+ features supports is getting better among modern browsers.
Several patches from #2 already using some ([mostly](https://github.com/iitc-project/ingress-intel-total-conversion/p…
-
As the title says.
I've done work implementing Proxy as a ScriptableObject which basically delegates all calls to methods of the Scriptable interface to the provided Handler object or else to the Sc…
-
Hi,
Has anyone already explored how we can support the "rest parameters" in functions?
```javascript
function sum(...theArgs) {
return theArgs.reduce((previous, current) => {
return pre…