android: add condition for pureCall

This commit is contained in:
pengfei.zhou 2021-09-16 13:20:09 +08:00 committed by osborn
parent 520a3de6c5
commit 417052534a

View File

@ -288,7 +288,9 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
} }
JSDecoder ret = mDoricJSE.invokeMethod(DoricConstant.GLOBAL_DORIC, method, JSDecoder ret = mDoricJSE.invokeMethod(DoricConstant.GLOBAL_DORIC, method,
values.toArray(new JavaValue[0]), false); values.toArray(new JavaValue[0]), false);
mDoricJSE.invokeMethod(DoricConstant.GLOBAL_DORIC, DoricConstant.DORIC_HOOK_NATIVE_CALL, new JavaValue[0], false); if (!DoricConstant.DORIC_CONTEXT_INVOKE_PURE.equals(method)) {
mDoricJSE.invokeMethod(DoricConstant.GLOBAL_DORIC, DoricConstant.DORIC_HOOK_NATIVE_CALL, new JavaValue[0], false);
}
return ret; return ret;
} }