static addUnhandledRejection_(promise, reason) {
    promise.hadUnhandledRejection_ = true;
    mr.MockPromise.pendingHandlers_.push(() => {
      if (promise.hadUnhandledRejection_) {
        mr.MockPromise.handleRejection_(reason);
      }
    });
  }
/**
   * Marks this rejected Promise as unhandled. If no `onRejected` callback
   * is called for this Promise before the `UNHANDLED_REJECTION_DELAY`
   * expires, the reason will be passed to the unhandled rejection handler. The
   * handler typically rethrows the rejection reason so that it becomes visible
   * in
   * the developer console.
   *
   * @param {!mr.MockPromise} promise The rejected Promise.
   * @param {*} reason The Promise rejection reason.
   * @private
   */
Marks this rejected Promise as unhandled. If no `onRejected` callback
is called for this Promise before the `UNHANDLED_REJECTION_DELAY`
expires, the reason will be passed to the unhandled rejection handler. The
handler typically rethrows the rejection reason so that it becomes visible
in
the developer console.

@param {!mr.MockPromise} promise The rejected Promise.
@param {*} reason The Promise rejection reason.
@private
Marks this rejected Promise as unhandled . If no ` onRejected ` callback is called for this Promise before the ` UNHANDLED_REJECTION_DELAY ` expires the reason will be passed to the unhandled rejection handler . The handler typically rethrows the rejection reason so that it becomes visible in the developer console . @param { !mr . MockPromise } promise The rejected Promise . @param { * } reason The Promise rejection reason . @private
static addUnhandledRejection_(promise, reason) {
    promise.hadUnhandledRejection_ = true;
    mr.MockPromise.pendingHandlers_.push(() => {
      if (promise.hadUnhandledRejection_) {
        mr.MockPromise.handleRejection_(reason);
      }
    });
  }
static addUnhandledRejection_ ( promise , reason ) { promise . hadUnhandledRejection_ = true ; mr . MockPromise . pendingHandlers_ . push ( ( ) => { if ( promise . hadUnhandledRejection_ ) { mr . MockPromise . handleRejection_ ( reason ) ; } } ) ; }
Marks this rejected Promise as unhandled.
Marks this rejected Promise as unhandled .