add and change function

This commit is contained in:
lizhi 2021-12-17 16:47:48 +08:00
parent 3321ab23c2
commit f855f49ec7

View File

@ -228,6 +228,7 @@ public class DesktopEngine extends JSEngine {
public Object invokeFunction(String functionName, Object... args) { public Object invokeFunction(String functionName, Object... args) {
Invocable cal = engine; Invocable cal = engine;
try { try {
return cal.invokeFunction(functionName, args); return cal.invokeFunction(functionName, args);
} catch (ScriptException e) { } catch (ScriptException e) {
@ -235,6 +236,7 @@ public class DesktopEngine extends JSEngine {
} catch (NoSuchMethodException e) { } catch (NoSuchMethodException e) {
e.printStackTrace(); e.printStackTrace();
} }
return null; return null;
} }