summaryrefslogtreecommitdiff
path: root/js/compiler.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2018-11-09 11:09:18 +1100
committerRyan Dahl <ry@tinyclouds.org>2018-11-09 08:39:49 -0800
commit34b6b86c76111396dd46e46015ad5536d6baa883 (patch)
tree6c668147aa01f2be031f10bc594100a392bb7531 /js/compiler.ts
parent172f5a51332b24c1027ea0f22d7e71b516dcd7d5 (diff)
Ensure global type instances are available.
Diffstat (limited to 'js/compiler.ts')
-rw-r--r--js/compiler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index 046233442..d87309512 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -6,11 +6,12 @@ import { assetSourceCode } from "./assets";
import * as deno from "./deno";
import { globalEval } from "./global_eval";
import { libdeno } from "./libdeno";
-import { window } from "./globals";
import * as os from "./os";
import { RawSourceMap } from "./types";
import { assert, log, notImplemented } from "./util";
+const window = globalEval("this");
+
const EOL = "\n";
const ASSETS = "$asset$";
const LIB_RUNTIME = "lib.deno_runtime.d.ts";