summaryrefslogtreecommitdiff
path: root/op_crates/web
diff options
context:
space:
mode:
Diffstat (limited to 'op_crates/web')
-rw-r--r--op_crates/web/03_global_interfaces.js3
-rw-r--r--op_crates/web/11_url.js4
-rw-r--r--op_crates/web/lib.deno_web.d.ts2
3 files changed, 7 insertions, 2 deletions
diff --git a/op_crates/web/03_global_interfaces.js b/op_crates/web/03_global_interfaces.js
index f900e7160..3c6b5695b 100644
--- a/op_crates/web/03_global_interfaces.js
+++ b/op_crates/web/03_global_interfaces.js
@@ -8,6 +8,7 @@
if (key !== illegalConstructorKey) {
throw new TypeError("Illegal constructor.");
}
+ super();
}
get [Symbol.toStringTag]() {
@@ -20,6 +21,7 @@
if (key != illegalConstructorKey) {
throw new TypeError("Illegal constructor.");
}
+ super();
}
get [Symbol.toStringTag]() {
@@ -32,6 +34,7 @@
if (key != illegalConstructorKey) {
throw new TypeError("Illegal constructor.");
}
+ super();
}
get [Symbol.toStringTag]() {
diff --git a/op_crates/web/11_url.js b/op_crates/web/11_url.js
index d60f9769a..af70dad21 100644
--- a/op_crates/web/11_url.js
+++ b/op_crates/web/11_url.js
@@ -593,7 +593,9 @@
try {
const isSpecial = specialSchemes.includes(parts.get(this).protocol);
parts.get(this).hostname = encodeHostname(value, isSpecial);
- } catch {}
+ } catch {
+ // pass
+ }
}
get href() {
diff --git a/op_crates/web/lib.deno_web.d.ts b/op_crates/web/lib.deno_web.d.ts
index 4dffe7c48..2175a5192 100644
--- a/op_crates/web/lib.deno_web.d.ts
+++ b/op_crates/web/lib.deno_web.d.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, no-var */
+// deno-lint-ignore-file no-explicit-any
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />