Github user jbmusso commented on the issue:
https://github.com/apache/tinkerpop/pull/450
Ah, it looks like [nashorn supports let and const keywords on
8u40](http://fr.slideshare.net/akihironishikawa/nashorn-in-the-future-en) so we
could swap `var` for `let` and `const` unless we want to target earlier
versions of Java8. I don't think adding a transpiler such as Babeljs to the mix
is worth the trouble here since it's going to be a nightmare to maintain the
build pipeline. However, it *could* make sense for more recent versions of
Node. Node 7 would be happier with ES2015 code rather than ES5 ;) - see
http://node.green/. I don't think it's realistic so I'm just putting it here
for further reference, basically when Java9 is out (where [nashorn could fully
support
ES2015/6](http://fr.slideshare.net/akihironishikawa/nashorn-in-the-future-en)).
Note that there is [a proposal for adding async iterator to
JavaScript](https://github.com/tc39/proposal-async-iteration). It's currently
in stage 3 so this could make it to the EcmaScript specification. Using
`.next()` for async iteration might become a reality.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---