Skip to content

Commit

Permalink
Define db's associated upgrade tx to align with impls/tests (Resolves #…
Browse files Browse the repository at this point in the history
…192)

Implementations and tests have create/deleteObjectStore throw "TransactionInactiveError" if the transaction has aborted but the abort event has not yet fired. The spec disagreed, or at least was imprecise about the definition of "finished".

To resolve this, databases are given an associated upgrade tx which is nulled out when the event fires, rather than relying on "finished". This simplifies text elsewhere too.

Covered by existing web-platform-tests.
  • Loading branch information
inexorabletash authored May 12, 2017
1 parent f007e74 commit ee40bb3
Show file tree
Hide file tree
Showing 2 changed files with 280 additions and 240 deletions.
Loading

0 comments on commit ee40bb3

Please sign in to comment.