diff options
Diffstat (limited to 'js/globals.ts')
-rw-r--r-- | js/globals.ts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/globals.ts b/js/globals.ts index 9e7d20bcc..e0fa6ef12 100644 --- a/js/globals.ts +++ b/js/globals.ts @@ -10,6 +10,7 @@ import * as blob from "./blob"; import * as consoleTypes from "./console"; import * as customEvent from "./custom_event"; +import * as deno from "./deno"; import * as domTypes from "./dom_types"; import * as event from "./event"; import * as eventTarget from "./event_target"; @@ -41,6 +42,13 @@ export const window = globalEval("this"); // A self reference to the global object. 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. + +window.Deno = deno; +Object.freeze(window.Deno); + // Globally available functions and object instances. window.atob = textEncoding.atob; window.btoa = textEncoding.btoa; |