b.transaction('s');
    const store = tx.objectStore('s');

    setTimeout(t.step_func(() => {
      assert_throws_dom(
        'InvalidStateError', () => { store.deleteIndex('i'); },
        '"running an upgrade transaction" check (InvalidStateError) ' +
        'should precede "not active" check (TransactionInactiveError)');
      t.done();
    }), 0);
  },
  'IDBObjectStore.deleteIndex exception order: ' +
  'InvalidStateError #1 vs. TransactionInactiveError'
);

indexeddb_test(
  (t, db) => {
    const 