arr = new ArrayList<>();
for (String modelName : models.keySet()){
Model model = new Model(modelName, models.get(modelName).toJSONObject(), packageName, options);
arr.add(model);
@@ -94,8 +100,9 @@ private JSONObject parseJavaScript(String js) throws Exception {
//Instantiate ScriptEngine
- ScriptEngineManager factory = new ScriptEngineManager();
- ScriptEngine engine = factory.getEngineByName("nashorn");
+ String[] options = new String[] { "--language=es6" };
+ NashornScriptEngineFactory factory = new NashornScriptEngineFactory();
+ NashornScriptEngine engine = (NashornScriptEngine) factory.getScriptEngine(options);
//Extract variables
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy