android:catch throwable,not just exception
This commit is contained in:
parent
643a9f5fe9
commit
dea6e05bee
@ -101,10 +101,8 @@ public class DoricJSEngine implements Handler.Callback, DoricTimerExtension.Time
|
|||||||
protected void initJSEngine() {
|
protected void initJSEngine() {
|
||||||
try {
|
try {
|
||||||
mDoricJSE = new DoricNativeJSExecutor();
|
mDoricJSE = new DoricNativeJSExecutor();
|
||||||
} catch (Exception e) {
|
} catch (Throwable e) {
|
||||||
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
|
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
|
||||||
}
|
|
||||||
if (mDoricJSE instanceof DoricWebViewJSExecutor) {
|
|
||||||
loadBuiltinJS("doric-web.js");
|
loadBuiltinJS("doric-web.js");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user