added some more flags to optimize runtimes

This commit is contained in:
luisc committed 2025-05-30 16:09:47 -05:00
1 parent 44b3ddedd8
commit f2c7121912
1 file changed
+5 -1
@@ -377,7 +377,11 @@ public class ScriptController {
);
} else {
Method getEngineMethod = factoryClass.getMethod("getScriptEngine", String[].class);
String[] args = new String[] { "--language=es6" };
String[] args = new String[] {
"--language=es6",
"--optimistic-types=true",
"--lazy-parse=true"
};
engine = (ScriptEngine) getEngineMethod.invoke(factory, (Object) args);
}