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/compiler.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/compiler.ts')
-rw-r--r-- | cli/js/compiler.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts index c0f9c0a1e..79b9fdaf6 100644 --- a/cli/js/compiler.ts +++ b/cli/js/compiler.ts @@ -32,9 +32,10 @@ import { fromTypeScriptDiagnostic } from "./diagnostics_util.ts"; import * as os from "./os.ts"; import { assert } from "./util.ts"; import * as util from "./util.ts"; -import { window as self } from "./window.ts"; import { postMessage, workerClose, workerMain } from "./workers.ts"; +const self = globalThis; + interface CompilerRequestCompile { type: CompilerRequestType.Compile; rootNames: string[]; |