Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove nashorn javascript engine support #6

Open
muntis opened this issue Jul 23, 2021 · 0 comments
Open

Remove nashorn javascript engine support #6

muntis opened this issue Jul 23, 2021 · 0 comments

Comments

@muntis
Copy link
Collaborator

muntis commented Jul 23, 2021

Nashorn is known to cause memory leaks and should not be used in validations on every save. As alternative if required GraalVM should be used.

GrallVM supports javax.script.ScriptEngineManager , it means that theoretically app should have graalvm import and get correct engine from scriptEngineFactory. But I couldn't enable es6 support.

https://www.graalvm.org/reference-manual/js/ScriptEngine/

Or as website states, new implementation should use org.graalvm.polyglot.Context, here es6 works out of the box.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant