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/core.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/js/core.ts') diff --git a/cli/js/core.ts b/cli/js/core.ts index 5a60b6f86..5a0d95225 100644 --- a/cli/js/core.ts +++ b/cli/js/core.ts @@ -1,6 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -import { window } from "./window.ts"; // This allows us to access core in API even if we // dispose window.Deno -export const core = window.Deno.core as DenoCore; +export const core = globalThis.Deno.core as DenoCore; -- cgit v1.2.3