summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/070_location.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/tests/testdata/070_location.ts')
-rw-r--r--cli/tests/testdata/070_location.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/tests/testdata/070_location.ts b/cli/tests/testdata/070_location.ts
index 149de5423..05e5abdf1 100644
--- a/cli/tests/testdata/070_location.ts
+++ b/cli/tests/testdata/070_location.ts
@@ -1,7 +1,15 @@
+// deno-lint-ignore-file no-global-assign
console.log(Location);
console.log(Location.prototype);
console.log(location);
try {
+ location = {};
+} catch (error) {
+ if (error instanceof Error) {
+ console.log(error.toString());
+ }
+}
+try {
location.hostname = "bar";
} catch (error) {
if (error instanceof Error) {