I have got an exception when try to include d3.js library.
Exception:
Caused by: jdk.nashorn.internal.runtime.ParserException: :17:72 Expected ) but found ;
for (null == r && (r = 0), null == i && (i = n.length); r < i;if();) {if();
at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:294)
at jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:279)
at jdk.nashorn.internal.parser.AbstractParser.expectDontAdvance(AbstractParser.java:350)
at jdk.nashorn.internal.parser.AbstractParser.expect(AbstractParser.java:337)
at jdk.nashorn.internal.parser.Parser.forStatement(Parser.java:1322)
I have got an exception when try to include d3.js library. Exception:
I tried to use approach @mxro that he suggested on issue https://github.com/javadelight/delight-nashorn-sandbox/issues/81 but it doesn't help. Could you fix it?
Steps to reproduce: 1) Create a pom file with dependencies:
2) Create Main class
3) Load content of d3.js library (https://d3js.org/d3.v5.min.js) to d3.js file (that should be exist by path: src/main/resources/d3.js)