summaryrefslogtreecommitdiff
path: root/js/globals.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/globals.ts
parenta5720d9e28f7ee5868049504816405392c2821d7 (diff)
remove global_eval.ts (#1813)
Diffstat (limited to 'js/globals.ts')
-rw-r--r--js/globals.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/globals.ts b/js/globals.ts
index 935890be4..9bd0584b2 100644
--- a/js/globals.ts
+++ b/js/globals.ts
@@ -7,6 +7,7 @@
// Modules which will make up part of the global public API surface should be
// imported as namespaces, so when the runtime tpye library is generated they
// can be expressed as a namespace in the type library.
+import { window } from "./window";
import * as blob from "./blob";
import * as consoleTypes from "./console";
import * as customEvent from "./custom_event";
@@ -26,7 +27,6 @@ import * as performanceUtil from "./performance";
// These imports are not exposed and therefore are fine to just import the
// symbols required.
-import { globalEval } from "./global_eval";
import { libdeno } from "./libdeno";
// During the build process, augmentations to the variable `window` in this
@@ -37,8 +37,6 @@ declare global {
const setTimeout: typeof timers.setTimeout;
}
-// A reference to the global object.
-export const window = globalEval("this");
// A self reference to the global object.
window.window = window;