diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-05-01 20:15:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 20:15:28 +0200 |
commit | 6661e7e287aa595eccdc8d49940c40953b1f69bc (patch) | |
tree | 4e936d8aa3ee3acbc7c012072d160a5793401c93 /cli/js/runtime_main.ts | |
parent | 5d3c49082ffa96fc97af1e7bf637c930dd9cdf66 (diff) |
BREAKING: remove window.location and self.location (#5034)
This commit removes "location" global available on "window",
"globalThis" and "self".
Diffstat (limited to 'cli/js/runtime_main.ts')
-rw-r--r-- | cli/js/runtime_main.ts | 15 |
1 files changed, 1 insertions, 14 deletions
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), |