Skip to content

Commit 02c53a6

Browse files
Sasha Romanyshynjknack
authored andcommitted
If loader is null, the script engine factories that are bundled with the platform and that are in the usual extension directories (installed extensions) are loaded
1 parent 9b0e527 commit 02c53a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

handlebars/src/main/java/com/github/jknack/handlebars/Handlebars.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ private ScriptEngine engine() {
14561456
synchronized (this) {
14571457
if (this.engine == null) {
14581458

1459-
this.engine = new ScriptEngineManager().getEngineByName("nashorn");
1459+
this.engine = new ScriptEngineManager(null).getEngineByName("nashorn");
14601460

14611461
Throwing.run(() -> engine.eval(Files.read(this.handlebarsJsFile, charset)));
14621462
}

0 commit comments

Comments
 (0)