summaryrefslogtreecommitdiff
path: root/js/stat.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/stat.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/stat.ts')
-rw-r--r--js/stat.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/stat.ts b/js/stat.ts
index 284679f84..db1af6974 100644
--- a/js/stat.ts
+++ b/js/stat.ts
@@ -64,14 +64,14 @@ function req(
fbs.Stat.startStat(builder);
fbs.Stat.addFilename(builder, filename_);
fbs.Stat.addLstat(builder, lstat);
- const msg = fbs.Stat.endStat(builder);
- return [builder, fbs.Any.Stat, msg];
+ const inner = fbs.Stat.endStat(builder);
+ return [builder, fbs.Any.Stat, inner];
}
function res(baseRes: null | fbs.Base): FileInfo {
assert(baseRes != null);
- assert(fbs.Any.StatRes === baseRes!.msgType());
+ assert(fbs.Any.StatRes === baseRes!.innerType());
const res = new fbs.StatRes();
- assert(baseRes!.msg(res) != null);
+ assert(baseRes!.inner(res) != null);
return new FileInfoImpl(res);
}