From 6661e7e287aa595eccdc8d49940c40953b1f69bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Fri, 1 May 2020 20:15:28 +0200 Subject: BREAKING: remove window.location and self.location (#5034) This commit removes "location" global available on "window", "globalThis" and "self". --- cli/tests/if_main.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/if_main.ts b/cli/tests/if_main.ts index b47066b2d..4dcfecea0 100644 --- a/cli/tests/if_main.ts +++ b/cli/tests/if_main.ts @@ -1,7 +1,6 @@ -if (window.location.toString() == import.meta.url) { +if (import.meta.main) { console.log("main"); } else { console.log("import.meta.url", import.meta.url); - console.log("window.location", window.location.toString()); throw Error("not main"); } -- cgit v1.2.3