Add `commit` method and update per https://github.com/w3c/IndexedDB/pull/242/files , including changing variable names to match the flag changes (for easier debugging).