kestra-io / plugin-scripts

https://kestra.io/plugins/
Apache License 2.0
9 stars 9 forks source link

Enable support for ES6 syntax in Nashorn plugin #161

Closed aku closed 4 months ago

aku commented 4 months ago

Feature description

AFAIK Nashorn supports ES6 syntax. It would be nice to be able to use it for file transforms and other tasks

loicmathieu commented 4 months ago

We use Nashorn the standard way, with the latest released library. Even if its documentation said that it supports some of the ES6 syntax, I tested them, and it didn't work.

I have no idea if we can do something about it, but long term we plan to deprecate this and switch to GraalVM for in-jvm scripting capability so we will not investigate too much about this.