summaryrefslogtreecommitdiff
path: root/js/timers.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-03 21:18:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-04 00:25:55 -0400
commit818ad37678e478039a9eccf543e1049fcdf32566 (patch)
tree2f97738e66c8c0b25d7fb2caa32dcec4d4d644c4 /js/timers.ts
parentf774953011cb3ad85914bc9f5f66aa121f00528d (diff)
Rename fbs to msg.
Diffstat (limited to 'js/timers.ts')
-rw-r--r--js/timers.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/js/timers.ts b/js/timers.ts
index 6c0b9814c..e503e9ccc 100644
--- a/js/timers.ts
+++ b/js/timers.ts
@@ -1,6 +1,6 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import { assert } from "./util";
-import * as fbs from "gen/msg_generated";
+import * as msg from "gen/msg_generated";
import { flatbuffers } from "flatbuffers";
import { sendSync, setFireTimersCallback } from "./dispatch";
@@ -52,10 +52,10 @@ function setGlobalTimeout(due: number | null, now: number) {
}
// Send message to the backend.
const builder = new flatbuffers.Builder();
- fbs.SetTimeout.startSetTimeout(builder);
- fbs.SetTimeout.addTimeout(builder, timeout);
- const inner = fbs.SetTimeout.endSetTimeout(builder);
- const res = sendSync(builder, fbs.Any.SetTimeout, inner);
+ msg.SetTimeout.startSetTimeout(builder);
+ msg.SetTimeout.addTimeout(builder, timeout);
+ const inner = msg.SetTimeout.endSetTimeout(builder);
+ const res = sendSync(builder, msg.Any.SetTimeout, inner);
assert(res == null);
// Remember when when the global timer will fire.
globalTimeoutDue = due;