also do this in try catch

This commit is contained in:
Bruno Windels 2020-09-29 09:43:25 +02:00
parent 4d23529b68
commit 07fcf7e75b

View File

@ -35,11 +35,11 @@ class QueryTargetWrapper {
} }
openKeyCursor(...params) { openKeyCursor(...params) {
// not supported on Edge 15
if (!this._qt.openKeyCursor) {
return this.openCursor(...params);
}
try { try {
// not supported on Edge 15
if (!this._qt.openKeyCursor) {
return this.openCursor(...params);
}
return this._qt.openKeyCursor(...params); return this._qt.openKeyCursor(...params);
} catch(err) { } catch(err) {
throw new IDBRequestAttemptError("openKeyCursor", this._qt, err, params); throw new IDBRequestAttemptError("openKeyCursor", this._qt, err, params);