From ddee2dff14772ade16e282ad18eda6f5054ce94e Mon Sep 17 00:00:00 2001 From: "Kevin (Kun) \"Kassimo\" Qian" Date: Mon, 5 Aug 2019 04:23:41 -0700 Subject: Provide option to delete Deno namespace in worker (#2717) --- js/globals.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js/globals.ts') 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. -- cgit v1.2.3