diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2018-10-03 21:18:23 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-04 00:25:55 -0400 |
commit | 818ad37678e478039a9eccf543e1049fcdf32566 (patch) | |
tree | 2f97738e66c8c0b25d7fb2caa32dcec4d4d644c4 /js/main.ts | |
parent | f774953011cb3ad85914bc9f5f66aa121f00528d (diff) |
Rename fbs to msg.
Diffstat (limited to 'js/main.ts')
-rw-r--r-- | js/main.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/js/main.ts b/js/main.ts index 19e82c9d7..265037111 100644 --- a/js/main.ts +++ b/js/main.ts @@ -1,6 +1,6 @@ // Copyright 2018 the Deno authors. All rights reserved. MIT license. import { flatbuffers } from "flatbuffers"; -import * as fbs from "gen/msg_generated"; +import * as msg from "gen/msg_generated"; import { assert, log, setLogDebug } from "./util"; import * as os from "./os"; import { DenoCompiler } from "./compiler"; @@ -8,14 +8,14 @@ import { libdeno } from "./libdeno"; import { args } from "./deno"; import { sendSync, handleAsyncMsgFromRust } from "./dispatch"; -function sendStart(): fbs.StartRes { +function sendStart(): msg.StartRes { const builder = new flatbuffers.Builder(); - fbs.Start.startStart(builder); - const startOffset = fbs.Start.endStart(builder); - const baseRes = sendSync(builder, fbs.Any.Start, startOffset); + msg.Start.startStart(builder); + const startOffset = msg.Start.endStart(builder); + const baseRes = sendSync(builder, msg.Any.Start, startOffset); assert(baseRes != null); - assert(fbs.Any.StartRes === baseRes!.innerType()); - const startRes = new fbs.StartRes(); + assert(msg.Any.StartRes === baseRes!.innerType()); + const startRes = new msg.StartRes(); assert(baseRes!.inner(startRes) != null); return startRes; } |