summaryrefslogtreecommitdiff
path: root/js/repl.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/repl.ts
parent172f5a51332b24c1027ea0f22d7e71b516dcd7d5 (diff)
Ensure global type instances are available.
Diffstat (limited to 'js/repl.ts')
-rw-r--r--js/repl.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/js/repl.ts b/js/repl.ts
index 3139330f6..ae457e8e4 100644
--- a/js/repl.ts
+++ b/js/repl.ts
@@ -6,7 +6,9 @@ import * as deno from "./deno";
import { close } from "./files";
import * as dispatch from "./dispatch";
import { exit } from "./os";
-import { window } from "./globals";
+import { globalEval } from "./global_eval";
+
+const window = globalEval("this");
function startRepl(historyFile: string): number {
const builder = flatbuffers.createBuilder();