Commit f026b5884596763f1de1b6b5808510892c5bd55e

Authored by Igor Kulikov
1 parent 834a9c9c

Improve JS sandbox engine.

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