summaryrefslogtreecommitdiff
path: root/js/performance.ts
diff options
context:
space:
mode:
authorJonathon Orsi <jonathon.orsi@gmail.com>2019-04-07 20:51:43 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-04-07 20:51:43 -0400
commit3452a10840ef47bb5546969ebe776289c7b095f1 (patch)
tree165439d870c7fdc2b914d9e008162ea7c17b4cb2 /js/performance.ts
parent86aee7f13751bd4707f6c2fe367be2359fde84b2 (diff)
use flatbuffer create functions to add fields (#2046)
Diffstat (limited to 'js/performance.ts')
-rw-r--r--js/performance.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/performance.ts b/js/performance.ts
index b4d0fa43b..1af75809b 100644
--- a/js/performance.ts
+++ b/js/performance.ts
@@ -18,8 +18,7 @@ export class Performance {
*/
now(): number {
const builder = flatbuffers.createBuilder();
- msg.Now.startNow(builder);
- const inner = msg.Now.endNow(builder);
+ const inner = msg.Now.createNow(builder);
const baseRes = sendSync(builder, msg.Any.Now, inner)!;
assert(msg.Any.NowRes === baseRes.innerType());
const res = new msg.NowRes();