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/js/runtime_main.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'cli/js/runtime_main.ts') diff --git a/cli/js/runtime_main.ts b/cli/js/runtime_main.ts index b2ed5d52b..a9787d7cb 100644 --- a/cli/js/runtime_main.ts +++ b/cli/js/runtime_main.ts @@ -24,7 +24,6 @@ import { unstableMethods, unstableProperties } from "./globals_unstable.ts"; import { internalObject, internalSymbol } from "./internals.ts"; import { setSignals } from "./signals.ts"; import { replLoop } from "./repl.ts"; -import { LocationImpl } from "./web/location.ts"; import { setTimeout } from "./web/timers.ts"; import * as runtime from "./runtime.ts"; import { log, immutableDefine } from "./util.ts"; @@ -98,19 +97,7 @@ export function bootstrapMainRuntime(): void { } }); - const { - args, - cwd, - location, - noColor, - pid, - repl, - unstableFlag, - } = runtime.start(); - - const location_ = new LocationImpl(location); - immutableDefine(globalThis, "location", location_); - Object.freeze(globalThis.location); + const { args, cwd, noColor, pid, repl, unstableFlag } = runtime.start(); Object.defineProperties(denoNs, { pid: readOnly(pid), -- cgit v1.2.3