idb: fix bug in index iteration

This commit is contained in:
Florian Dold 2019-08-26 03:39:58 +02:00
parent 6cea1f7c5b
commit d98c1b09c7
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "idb-bridge", "name": "idb-bridge",
"version": "0.0.8", "version": "0.0.9",
"description": "IndexedDB implementation that uses SQLite3 as storage", "description": "IndexedDB implementation that uses SQLite3 as storage",
"main": "./build/index.js", "main": "./build/index.js",
"types": "./build/index.d.ts", "types": "./build/index.d.ts",

View File

@ -1076,6 +1076,7 @@ export class MemoryBackend implements Backend {
const res = indexData.nextHigherPair(indexPos); const res = indexData.nextHigherPair(indexPos);
if (res) { if (res) {
indexEntry = res[1]; indexEntry = res[1];
indexPos = indexEntry.indexKey;
} }
} }