aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:54:57 -0500
committertoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-02-22 14:54:57 -0500
commit6513a15b3b5fd8586226c8823e2680478b97e132 (patch)
treefdfdc9ed13fb38117e922d27c60616f159a2c63e
parente3cfb3fbc709285e292fe5e8bb68ca8903e6c86b (diff)
Fix shadowing
-rw-r--r--test/test-database.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test-database.js b/test/test-database.js
index 04ed8100..44f409dd 100644
--- a/test/test-database.js
+++ b/test/test-database.js
@@ -36,8 +36,8 @@ class XMLHttpRequest {
callbacks.push(callback);
}
- open(action, url) {
- this._url = url;
+ open(action, url2) {
+ this._url = url2;
}
send() {
@@ -116,10 +116,10 @@ function clearDatabase(timeout) {
(async () => {
const indexedDB = global.indexedDB;
for (const {name} of await indexedDB.databases()) {
- await new Promise((resolve, reject) => {
+ await new Promise((resolve2, reject2) => {
const request = indexedDB.deleteDatabase(name);
- request.onerror = (e) => reject(e);
- request.onsuccess = () => resolve();
+ request.onerror = (e) => reject2(e);
+ request.onsuccess = () => resolve2();
});
}
clearTimeout(timer);