Avoid Nashorn deprecation warning

Description

With JDK 11:

1 2 3 4 5 $ clj -m cljs.main -re nashorn -r Warning: Nashorn engine is planned to be removed from a future JDK release Warning: Nashorn engine is planned to be removed from a future JDK release ClojureScript 1.10.339 cljs.user=>

While this is perhaps a useful warning, the fact that it appears twice and the fact that it could conceivably break scripts that are using Nashorn, makes me think we should suppress this warning.

This can be suppressed per https://bugs.openjdk.java.net/browse/JDK-8210140 by ensuring that "--no-deprecation-warning" is in the args vector https://github.com/clojure/clojurescript/blob/6eedd0a08c49f7b0d4dcb30977b2fb38c90577bd/src/main/clojure/cljs/repl/nashorn.clj#L32

If this is added, we should test that adding this argument doesn't break things on, say JDK 8.

Environment

None

Status

Assignee

David Nolen

Reporter

Mike Fikes

Labels

Approval

None

Patch

Code

Priority

Major
Configure