diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2020-01-16 16:42:58 -0800 |
---|---|---|
committer | Ry Dahl <ry@tinyclouds.org> | 2020-01-16 19:42:58 -0500 |
commit | 0a78bfb836f520d3709a32c8a978d08d33198d83 (patch) | |
tree | aa96e2164ea39d8856a4eca7eeb5c21388d8a4b7 /cli/js/globals.ts | |
parent | cad7b3e4fe4e368882628dbde8512f36d142098b (diff) |
Add Deno.symbols and move internal fields for test (#3693)
Diffstat (limited to 'cli/js/globals.ts')
-rw-r--r-- | cli/js/globals.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/js/globals.ts b/cli/js/globals.ts index d06bc2f6f..c7f3b23f2 100644 --- a/cli/js/globals.ts +++ b/cli/js/globals.ts @@ -32,6 +32,8 @@ import * as request from "./request.ts"; // symbols required. import { core } from "./core.ts"; +import { internalObject } from "./internals.ts"; + // During the build process, augmentations to the variable `window` in this // file are tracked and created as part of default library that is built into // Deno, we only need to declare the enough to compile Deno. @@ -69,6 +71,10 @@ declare global { // A self reference to the global object. window.window = window; +// Add internal object to Deno object. +// This is not exposed as part of the Deno types. +// @ts-ignore +Deno[Deno.symbols.internal] = internalObject; // This is the Deno namespace, it is handled differently from other window // properties when building the runtime type library, as the whole module // is flattened into a single namespace. |