diff options
Diffstat (limited to 'js/repl.ts')
-rw-r--r-- | js/repl.ts | 4 |
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(); |