Which ECMA Script version is used?

Which version of ECMA Script can be used in js233 *.js rules?

I‘m asking because I was wondering that modern variable definitions like let or const do throw an error…

See

Thanks for the info.

It‘s sad that modern JS programming elements like the mentioned variables and arrows can not be used which such an outdated ECMA version.

1 Like

Work is ongoing to get GraalVM working for rules in OH. But until that happens we are stuck with what Java supports out of the box, and that’s Nashorn.