diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-08-05 04:23:41 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-08-05 07:23:41 -0400 |
commit | ddee2dff14772ade16e282ad18eda6f5054ce94e (patch) | |
tree | 473cdf935b8d0254a7ab8e0c89fd407201793ac6 /js/globals.ts | |
parent | aaa7a3eac4df0de9a93dc8fc4717d38212a3de5b (diff) |
Provide option to delete Deno namespace in worker (#2717)
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/js/globals.ts b/js/globals.ts index 27cef3909..92e4662aa 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -32,7 +32,6 @@ import * as request from "./request"; // These imports are not exposed and therefore are fine to just import the // symbols required. import { core } from "./core"; -import { immutableDefine } from "./util"; // 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 @@ -71,7 +70,7 @@ window.window = window; // 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. -immutableDefine(window, "Deno", deno); +window.Deno = deno; Object.freeze(window.Deno); // Globally available functions and object instances. |