mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
Use globalThis to reference global scope (#3719)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
23e67eb515
commit
60b53fd6b6
19 changed files with 219 additions and 264 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue