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_worker.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_worker.ts')
-rw-r--r-- | cli/js/runtime_worker.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/cli/js/runtime_worker.ts b/cli/js/runtime_worker.ts index 1e456f016..18f8841f9 100644 --- a/cli/js/runtime_worker.ts +++ b/cli/js/runtime_worker.ts @@ -21,7 +21,6 @@ import { unstableMethods, unstableProperties } from "./globals_unstable.ts"; import * as denoNs from "./deno.ts"; import * as denoUnstableNs from "./deno_unstable.ts"; import * as webWorkerOps from "./ops/web_worker.ts"; -import { LocationImpl } from "./web/location.ts"; import { log, assert, immutableDefine } from "./util.ts"; import { MessageEvent, ErrorEvent } from "./web/workers.ts"; import { TextEncoder } from "./web/text_encoding.ts"; @@ -138,14 +137,10 @@ export function bootstrapWorkerRuntime( Object.defineProperties(globalThis, eventTargetProperties); Object.defineProperties(globalThis, { name: readOnly(name) }); setEventTargetData(globalThis); - const { location, unstableFlag, pid, noColor, args } = runtime.start( + const { unstableFlag, pid, noColor, args } = runtime.start( internalName ?? name ); - const location_ = new LocationImpl(location); - immutableDefine(globalThis, "location", location_); - Object.freeze(globalThis.location); - if (unstableFlag) { Object.defineProperties(globalThis, unstableMethods); Object.defineProperties(globalThis, unstableProperties); |