0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-31 09:14:20 -04:00
denoland-deno/cli/tests/testdata/071_location_unset.ts

17 lines
321 B
TypeScript
Raw Normal View History

console.log(Location);
console.log(Location.prototype);
console.log(location);
globalThis.location = {
hash: "#bat",
host: "foo",
hostname: "foo",
href: "https://foo/bar?baz#bat",
origin: "https://foo",
pathname: "/bar",
port: "",
protocol: "https:",
search: "?baz",
};
console.log(location.pathname);