executeCallback_(callbackEntry, state, result) {
    // Cancel an unhandled rejection if the then call had an onRejected.
    if (state == mr.MockPromise.State_.REJECTED && callbackEntry.onRejected) {
      this.hadUnhandledRejection_ = false;
    }

    if (callbackEntry.child) {
      mr.MockPromise.invokeCallback_(callbackEntry, state, result);
    } else {
      try {
        mr.MockPromise.invokeCallback_(callbackEntry, state, result);
      } catch (err) {
        mr.MockPromise.handleRejection_(err);
      }
    }
  }
/**
   * Executes a pending callback for this Promise. Invokes an
   * `onFulfilled` or `onRejected` callback based on the settled
   * state of the Promise.
   *
   * @param {!mr.MockPromise.CallbackEntry_} callbackEntry An entry containing
   *     the onFulfilled and/or onRejected callbacks for this step.
   * @param {mr.MockPromise.State_} state The resolution status of the Promise,
   *     either FULFILLED or REJECTED.
   * @param {*} result The settled result of the Promise.
   * @private
   */
Executes a pending callback for this Promise. Invokes an
`onFulfilled` or `onRejected` callback based on the settled
state of the Promise.

@param {!mr.MockPromise.CallbackEntry_} callbackEntry An entry containing
the onFulfilled and/or onRejected callbacks for this step.
@param {mr.MockPromise.State_} state The resolution status of the Promise,
either FULFILLED or REJECTED.
@param {*} result The settled result of the Promise.
@private
Executes a pending callback for this Promise . Invokes an ` onFulfilled ` or ` onRejected ` callback based on the settled state of the Promise . @param { !mr . MockPromise . CallbackEntry_ } callbackEntry An entry containing the onFulfilled and / or onRejected callbacks for this step . @param { mr . MockPromise . State_ } state The resolution status of the Promise either FULFILLED or REJECTED . @param { * } result The settled result of the Promise . @private
executeCallback_(callbackEntry, state, result) {
    if (state == mr.MockPromise.State_.REJECTED && callbackEntry.onRejected) {
      this.hadUnhandledRejection_ = false;
    }
    if (callbackEntry.child) {
      mr.MockPromise.invokeCallback_(callbackEntry, state, result);
    } else {
      try {
        mr.MockPromise.invokeCallback_(callbackEntry, state, result);
      } catch (err) {
        mr.MockPromise.handleRejection_(err);
      }
    }
  }
executeCallback_ ( callbackEntry , state , result ) { if ( state == mr . MockPromise . State_ . REJECTED && callbackEntry . onRejected ) { this . hadUnhandledRejection_ = false ; } if ( callbackEntry . child ) { mr . MockPromise . invokeCallback_ ( callbackEntry , state , result ) ; } else { try { mr . MockPromise . invokeCallback_ ( callbackEntry , state , result ) ; } catch ( err ) { mr . MockPromise . handleRejection_ ( err ) ; } } }
Executes a pending callback for this Promise.
Executes a pending callback for this Promise .
// Cancel an unhandled rejection if the then call had an onRejected.