Fix shadowing
This commit is contained in:
parent
e3cfb3fbc7
commit
6513a15b3b
@ -36,8 +36,8 @@ class XMLHttpRequest {
|
|||||||
callbacks.push(callback);
|
callbacks.push(callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
open(action, url) {
|
open(action, url2) {
|
||||||
this._url = url;
|
this._url = url2;
|
||||||
}
|
}
|
||||||
|
|
||||||
send() {
|
send() {
|
||||||
@ -116,10 +116,10 @@ function clearDatabase(timeout) {
|
|||||||
(async () => {
|
(async () => {
|
||||||
const indexedDB = global.indexedDB;
|
const indexedDB = global.indexedDB;
|
||||||
for (const {name} of await indexedDB.databases()) {
|
for (const {name} of await indexedDB.databases()) {
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve2, reject2) => {
|
||||||
const request = indexedDB.deleteDatabase(name);
|
const request = indexedDB.deleteDatabase(name);
|
||||||
request.onerror = (e) => reject(e);
|
request.onerror = (e) => reject2(e);
|
||||||
request.onsuccess = () => resolve();
|
request.onsuccess = () => resolve2();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
|
Loading…
Reference in New Issue
Block a user