From 60b53fd6b6dc2af83a64c332b9f3a1926f43d631 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 21 Jan 2020 01:30:30 +1100 Subject: Use globalThis to reference global scope (#3719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/js/compiler.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cli/js/compiler.ts') 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[]; -- cgit v1.2.3