summaryrefslogtreecommitdiff
path: root/js/os.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/os.ts')
-rw-r--r--js/os.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/os.ts b/js/os.ts
index f95114f04..c96416935 100644
--- a/js/os.ts
+++ b/js/os.ts
@@ -1,8 +1,8 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
import * as msg from "gen/msg_generated";
+import { window } from "./window";
import { handleAsyncMsgFromRust, sendSync } from "./dispatch";
import * as flatbuffers from "./flatbuffers";
-import { libdeno } from "./libdeno";
import { TextDecoder } from "./text_encoding";
import { assert } from "./util";
import * as util from "./util";
@@ -169,7 +169,7 @@ function sendStart(): msg.StartRes {
// the runtime and the compiler environments.
// @internal
export function start(source?: string): msg.StartRes {
- libdeno.recv(handleAsyncMsgFromRust);
+ window.DenoCore.setAsyncHandler(handleAsyncMsgFromRust);
// First we send an empty `Start` message to let the privileged side know we
// are ready. The response should be a `StartRes` message containing the CLI