abort() {
    if (this[PRIVATE.aborted]) {
      throw new Error("The transaction has already been aborted")
    }
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }

    this[PRIVATE.aborted] = true
    this[PRIVATE.active] = false

    this[PRIVATE.transaction].abort()

    return this[PRIVATE.transaction].completionPromise.then(() => {
      throw new Error("Unexpected successful transaction end has occurred " +
          "after the transaction has been aborted. Has the transaction been " +
          "already committed?")
    })
  }
/**
   * Aborts the underlying transaction. The transaction runner will no longer
   * execute the queued pending operations.
   *
   * The methods also marks the transaction as no longer active.
   *
   * @return {Promise<undefined>} A promise that will be rejected with an
   *         AbortError if the transaction has been successfully aborted, or an
   *         ordinary error if the transaction has somehow completed
   *         successfully (this really shouldn't happen).
   */
Aborts the underlying transaction. The transaction runner will no longer
execute the queued pending operations.

The methods also marks the transaction as no longer active.

@return {Promise} A promise that will be rejected with an
AbortError if the transaction has been successfully aborted, or an
ordinary error if the transaction has somehow completed
successfully (this really shouldn't happen).
Aborts the underlying transaction . The transaction runner will no longer execute the queued pending operations . The methods also marks the transaction as no longer active . @return { Promise } A promise that will be rejected with an AbortError if the transaction has been successfully aborted or an ordinary error if the transaction has somehow completed successfully ( this really shouldn ' t happen ) .
abort() {
    if (this[PRIVATE.aborted]) {
      throw new Error("The transaction has already been aborted")
    }
    if (!this[PRIVATE.active]) {
      throw new Error("The transaction is no longer active")
    }
    this[PRIVATE.aborted] = true
    this[PRIVATE.active] = false
    this[PRIVATE.transaction].abort()
    return this[PRIVATE.transaction].completionPromise.then(() => {
      throw new Error("Unexpected successful transaction end has occurred " +
          "after the transaction has been aborted. Has the transaction been " +
          "already committed?")
    })
  }
abort ( ) { if ( this [ PRIVATE . aborted ] ) { throw new Error ( "The transaction has already been aborted" ) } if ( ! this [ PRIVATE . active ] ) { throw new Error ( "The transaction is no longer active" ) } this [ PRIVATE . aborted ] = true this [ PRIVATE . active ] = false this [ PRIVATE . transaction ] . abort ( ) return this [ PRIVATE . transaction ] . completionPromise . then ( ( ) => { throw new Error ( "Unexpected successful transaction end has occurred " + "after the transaction has been aborted. Has the transaction been " + "already committed?" ) } ) }
Aborts the underlying transaction.
Aborts the underlying transaction .