blob: 05e5abdf19e7c8ffcbe635ac6d9a9237d64e4309 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// 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) {
console.log(error.toString());
}
}
|