1. Let event be the result of using .

    2. Set event’s [type](https://www.w3.org/TR/dom41/#dom-event-type) attribute to “error“.

    3. Let legacyOutputDidListenersThrowFlag be initially unset.

    4. Dispatch event at with legacyOutputDidListenersThrowFlag.

    5. If the event’s canceled flag is not set, run the steps to using transaction and request‘s .