Use Graal JavaScript VM.
Nashorn was removed in JDK15, but the PAC proxy detection code depends on having a JavaScript VM (what a twisty maze of passages). Rather than remove it completely, I'll just keep the tests working so that people who use Getdown with PAC proxies on JDK 14 or earlier can keep on trucking. Perhaps the JavaScript code could be rewritten in Java and this weird massive dependency could be eliminated?
This commit is contained in:
@@ -44,6 +44,18 @@
|
||||
<version>4.13.1</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.graalvm.js</groupId>
|
||||
<artifactId>js</artifactId>
|
||||
<version>20.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.graalvm.js</groupId>
|
||||
<artifactId>js-scriptengine</artifactId>
|
||||
<version>20.3.0</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
Reference in New Issue
Block a user