diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-02-20 11:42:19 +0900 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-19 21:42:19 -0500 |
commit | c4e37285758ff4cc5d388db2d880ed91decb3d29 (patch) | |
tree | 0c4f813da45a6407359ea739d0cd9b06af138d8e /js/workers.ts | |
parent | a5720d9e28f7ee5868049504816405392c2821d7 (diff) |
remove global_eval.ts (#1813)
Diffstat (limited to 'js/workers.ts')
-rw-r--r-- | js/workers.ts | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/js/workers.ts b/js/workers.ts index fd82e2304..1716f8ef6 100644 --- a/js/workers.ts +++ b/js/workers.ts @@ -3,7 +3,7 @@ import * as dispatch from "./dispatch"; import * as msg from "gen/msg_generated"; import * as flatbuffers from "./flatbuffers"; import { assert, log } from "./util"; -import { globalEval } from "./global_eval"; +import { window } from "./window"; export async function postMessage(data: Uint8Array): Promise<void> { const builder = flatbuffers.createBuilder(); @@ -53,10 +53,6 @@ export function workerClose(): void { export async function workerMain() { log("workerMain"); - // TODO avoid using globalEval to get Window. But circular imports if getting - // it from globals.ts - const window = globalEval("this"); - while (!isClosing) { const data = await getMessage(); if (data == null) { |