summaryrefslogtreecommitdiff
path: root/js/timers.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-10-03 21:12:23 -0400
committerRyan Dahl <ry@tinyclouds.org>2018-10-04 00:25:55 -0400
commitf774953011cb3ad85914bc9f5f66aa121f00528d (patch)
treee2943c332cd4d2af1fbbabf2e9b3ed879978b746 /js/timers.ts
parent51dc46eff4a122543f4a290c00fa29e3b272f70f (diff)
Rename flatbuffer base.msg to base.inner
This better disambiguates with the msg_generated.ts module, which in JS we call "fbs", but would be better called "msg".
Diffstat (limited to 'js/timers.ts')
-rw-r--r--js/timers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/timers.ts b/js/timers.ts
index 79aefb645..6c0b9814c 100644
--- a/js/timers.ts
+++ b/js/timers.ts
@@ -54,8 +54,8 @@ function setGlobalTimeout(due: number | null, now: number) {
const builder = new flatbuffers.Builder();
fbs.SetTimeout.startSetTimeout(builder);
fbs.SetTimeout.addTimeout(builder, timeout);
- const msg = fbs.SetTimeout.endSetTimeout(builder);
- const res = sendSync(builder, fbs.Any.SetTimeout, msg);
+ const inner = fbs.SetTimeout.endSetTimeout(builder);
+ const res = sendSync(builder, fbs.Any.SetTimeout, inner);
assert(res == null);
// Remember when when the global timer will fire.
globalTimeoutDue = due;