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

Switch from the Nashorn engine to Graal.js for executing the the export-site-tree script #234

Merged
merged 3 commits into from
Nov 4, 2024

Conversation

ccronca
Copy link
Collaborator

@ccronca ccronca commented Oct 30, 2024

Fixes: #232

The Nashorn engine supports only a limited set of ES6 features, which has resulted in the issue reported here. This issue was reproduced with OpenJDK 11 but not with OpenJDK 17. The Nashorn engine was deprecated in JDK 11(JEP 335) and removed in JDK 15 (JEP 372). This explains why ZAP fails when using the Nashorn engine with inline scripts in OpenJDK 17; the engine cannot be found in this context. However, the same version of OpenJDK works when the script is not inline.

To prevent similar issues in the future, I have switched to the Graal.js engine. Since the release of ZAP 2.14, Graal.js has been the recommended JavaScript engine. For more information, please see this

@ccronca ccronca self-assigned this Oct 30, 2024
Copy link
Collaborator

@sfowl sfowl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@ccronca ccronca merged commit 3a5206c into development Nov 4, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

Job export-site-tree-run: Expected an operand but found const
2 participants