Improve JS sandbox engine.

This commit is contained in:
Igor Kulikov 2018-11-20 16:28:19 +02:00
parent 834a9c9c25
commit f026b58845

View File

@ -46,6 +46,7 @@ public abstract class AbstractNashornJsInvokeService extends AbstractJsInvokeSer
sandbox.setExecutor(monitorExecutorService);
sandbox.setMaxCPUTime(getMaxCpuTime());
sandbox.allowNoBraces(false);
sandbox.allowLoadFunctions(true);
sandbox.setMaxPreparedStatements(30);
} else {
NashornScriptEngineFactory factory = new NashornScriptEngineFactory();