summaryrefslogtreecommitdiff
path: root/tests/specs/run/_071_location_unset/071_location_unset.ts
blob: f560d2716fc3dbbdd0398e1d08ec619ce4d89184 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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);