All the changes made to the by the transaction are reverted. For this includes changes to the set of object stores and , as well as the change to the version. Any and indexes which were created during the transaction are now considered deleted for the purposes of other algorithms.
If transaction is an , run the steps to abort an upgrade transaction with transaction.
This reverts changes to all , object store handle, and instances associated with transaction.
Set transaction’s state to .
If error is not null, set transaction’s error to error.
-
Set request’s to undefined.
Set request’s error to a newly ““
[DOMException](https://heycam.github.io/webidl/#idl-DOMException)
.Fire an event named at request with its
[bubbles](https://dom.spec.whatwg.org/#dom-event-bubbles)
and attributes initialized to true.
Queue a task to run these steps:
If transaction is an , then:
Let request be the open request associated with transaction.
Set request’s to null.
Set request’s result to undefined.