Skip to content

Commit

Permalink
Fixed errors when setting up Nashorn engine
Browse files Browse the repository at this point in the history
  • Loading branch information
OmerBenGera committed Sep 27, 2022
1 parent a6356ed commit 6e9b812
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -22,7 +22,7 @@ public static IScriptEngine createDefaultEngine() {
try {
Class.forName("org.openjdk.nashorn.api.scripting.NashornScriptEngineFactory");
defaultEngine = OPEN_JDK_NASHORN_ENGINE.invoke(null);
} catch (ClassNotFoundException error) {
} catch (Throwable error) {
defaultEngine = NashornEngine.getInstance();
}
}
Expand Down

0 comments on commit 6e9b812

Please sign in to comment.