IDE scripting console is based on Nashorn JavaScript engine; Nashorn that comes with java 8 doesn't support ES6. ES6 support is planned for Java9, see http://openjdk.java.net/jeps/292.
Note that IDE Scripting console is NOT a way to quickly run/ test js/es6 code snippets. To evaluate js code, you need to either use Node.js run configuration (run your code with Node.js using Run in .js file right-click menu), or evaluate code in debugger live console while debugging.
IDE scripting console is based on Nashorn JavaScript engine; Nashorn that comes with java 8 doesn't support ES6.
ES6 support is planned for Java9, see http://openjdk.java.net/jeps/292.
Note that IDE Scripting console is NOT a way to quickly run/ test js/es6 code snippets. To evaluate js code, you need to either use Node.js run configuration (run your code with Node.js using Run in .js file right-click menu), or evaluate code in debugger live console while debugging.
oh i see,
Thanks Elena!