message: fix(modal): throw from tns-core-modules is now properly caught and rejected
diff: @@ -76,8 +76,10 @@ export class ModalDialogService {
  this.location._beginModalNavigation();
  - return new Promise(resolve => {
  - setTimeout(() => this._showDialog({
  + return new Promise((resolve, reject) => {
  + setTimeout(() => {
  + try {
  + this._showDialog({
  containerRef: viewContainerRef,
  context,
  doneCallback: resolve,
  @@ -88,7 +90,11 @@ export class ModalDialogService {
  parentView,
  resolver,
  type,
  - }), 10);
  + });
  + } catch (err) {
  + reject(err);
  + }
  + }, 10);
  });
  }
  