mirror of
https://github.com/denoland/deno.git
synced 2025-08-02 18:12:39 +00:00
Organize libdeno functions.
This commit is contained in:
parent
4a1ccdeadb
commit
51380bf399
12 changed files with 94 additions and 77 deletions
|
@ -1,9 +1,9 @@
|
|||
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
|
||||
// tslint:disable-next-line:no-reference
|
||||
import { flatbuffers } from "flatbuffers";
|
||||
import { deno as fbs } from "gen/msg_generated";
|
||||
import { assert, log, assignCmdId } from "./util";
|
||||
import * as runtime from "./runtime";
|
||||
import { libdeno } from "./globals";
|
||||
|
||||
function startMsg(cmdId: number): Uint8Array {
|
||||
const builder = new flatbuffers.Builder();
|
||||
|
@ -25,7 +25,7 @@ export default function denoMain() {
|
|||
// are ready. The response should be a "StartRes" message containing the CLI
|
||||
// argv and other info.
|
||||
const cmdId = assignCmdId();
|
||||
const res = deno.send(startMsg(cmdId));
|
||||
const res = libdeno.send(startMsg(cmdId));
|
||||
|
||||
// TODO(ry) Remove this conditional once main.rs gets up to speed.
|
||||
if (res == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue