android:catch throwable,not just exception

This commit is contained in:
pengfei.zhou 2021-11-08 10:13:18 +08:00 committed by osborn
parent 643a9f5fe9
commit dea6e05bee

View File

@ -101,10 +101,8 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
protected void initJSEngine() {
try {
mDoricJSE = new DoricNativeJSExecutor();
} catch (Exception e) {
} catch (Throwable e) {
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
}
if (mDoricJSE instanceof DoricWebViewJSExecutor) {
loadBuiltinJS("doric-web.js");
}
}