commit() {
    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.active] = false

    return this[PRIVATE.transaction].completionPromise
  }
/**
   * Executes the remaining queued pending operations and commits the
   * transaction.
   *
   * @return {Promise<undefined>} A promise that resolves once the transaction
   *         has been committed.
   */
Executes the remaining queued pending operations and commits the
transaction.

@return {Promise} A promise that resolves once the transaction
has been committed.
Executes the remaining queued pending operations and commits the transaction . @return { Promise } A promise that resolves once the transaction has been committed .
commit() {
    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.active] = false
    return this[PRIVATE.transaction].completionPromise
  }
commit ( ) { 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 . active ] = false return this [ PRIVATE . transaction ] . completionPromise }
Executes the remaining queued pending operations and commits the
 transaction.
Executes the remaining queued pending operations and commits the transaction .