mirror of
https://github.com/denoland/deno.git
synced 2024-11-01 09:24:20 -04:00
16 lines
321 B
TypeScript
16 lines
321 B
TypeScript
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);
|