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() {
|
||||
try {
|
||||
mDoricJSE = new DoricNativeJSExecutor();
|
||||
} catch (Exception e) {
|
||||
} catch (Throwable e) {
|
||||
mDoricJSE = new DoricWebViewJSExecutor(Doric.application());
|
||||
}
|
||||
if (mDoricJSE instanceof DoricWebViewJSExecutor) {
|
||||
loadBuiltinJS("doric-web.js");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user