Please review: JBS: https://bugs.openjdk.java.net/browse/JDK-8241982 <https://bugs.openjdk.java.net/browse/JDK-8241982> Webrev: http://cr.openjdk.java.net/~hannesw/8241982/webrev.00/ <http://cr.openjdk.java.net/~hannesw/8241982/webrev.00/>
This makes TestSearchScript.java run with GraalJS in addition to Nashorn, and potentially with any other compatible JSR-223 JavaScript engine. I have tested it with both Nashorn and GraalJS. The test is skipped if no JavaScript engine is available. Thanks, Hannes