diff options
Diffstat (limited to 'js/os.ts')
-rw-r--r-- | js/os.ts | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |