diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-01-21 01:30:30 +1100 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-20 09:30:30 -0500 |
commit | 60b53fd6b6dc2af83a64c332b9f3a1926f43d631 (patch) | |
tree | 4f4ef1aadb8c79ef2319d728b9d5b132af40ef83 /cli/js/main.ts | |
parent | 23e67eb5153bd26dbae471b27dc6a21a6d283b0b (diff) |
Use globalThis to reference global scope (#3719)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/js/main.ts')
-rw-r--r-- | cli/js/main.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cli/js/main.ts b/cli/js/main.ts index 005686230..11dac5038 100644 --- a/cli/js/main.ts +++ b/cli/js/main.ts @@ -7,7 +7,6 @@ import { args } from "./deno.ts"; import { setPrepareStackTrace } from "./error_stack.ts"; import { replLoop } from "./repl.ts"; import { setVersions } from "./version.ts"; -import { window } from "./window.ts"; import { setLocation } from "./location.ts"; import { setBuildInfo } from "./build.ts"; import { setSignals } from "./process.ts"; @@ -36,4 +35,4 @@ function denoMain(preserveDenoNamespace = true, name?: string): void { replLoop(); } } -window["denoMain"] = denoMain; +globalThis["denoMain"] = denoMain; |