summaryrefslogtreecommitdiff
path: root/js/compiler.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2019-02-20 11:42:19 +0900
committerRyan Dahl <ry@tinyclouds.org>2019-02-19 21:42:19 -0500
commitc4e37285758ff4cc5d388db2d880ed91decb3d29 (patch)
tree0c4f813da45a6407359ea739d0cd9b06af138d8e /js/compiler.ts
parenta5720d9e28f7ee5868049504816405392c2821d7 (diff)
remove global_eval.ts (#1813)
Diffstat (limited to 'js/compiler.ts')
-rw-r--r--js/compiler.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/js/compiler.ts b/js/compiler.ts
index 27b97dd2d..27890babd 100644
--- a/js/compiler.ts
+++ b/js/compiler.ts
@@ -1,9 +1,9 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import * as ts from "typescript";
import * as msg from "gen/msg_generated";
+import { window } from "./window";
import { assetSourceCode } from "./assets";
import { Console } from "./console";
-import { globalEval } from "./global_eval";
import { libdeno } from "./libdeno";
import * as os from "./os";
import { TextDecoder, TextEncoder } from "./text_encoding";
@@ -15,9 +15,6 @@ const EOL = "\n";
const ASSETS = "$asset$";
const LIB_RUNTIME = `${ASSETS}/lib.deno_runtime.d.ts`;
-// A reference to the global scope
-const window = globalEval("this");
-
// An instance of console
const console = new Console(libdeno.print);