summaryrefslogtreecommitdiff
path: root/js/dispatch_flatbuffers.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-08-22 22:30:14 -0700
committerGitHub <noreply@github.com>2019-08-22 22:30:14 -0700
commitbc467b265fbe06ace24f5d9536bd8eb36ae4a601 (patch)
tree6c1761c852398a63fe31fc912841b449fe3851c3 /js/dispatch_flatbuffers.ts
parent47c216317f8eb5bf277663a732a79f6b07ba79ef (diff)
introduce JSON serialization for ops (#2799)
Converts env(), exit(), execPath(), utime() and utimeSync() to use JSON instead of flatbuffers.
Diffstat (limited to 'js/dispatch_flatbuffers.ts')
-rw-r--r--js/dispatch_flatbuffers.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/dispatch_flatbuffers.ts b/js/dispatch_flatbuffers.ts
index 87a01037c..0e375dbdf 100644
--- a/js/dispatch_flatbuffers.ts
+++ b/js/dispatch_flatbuffers.ts
@@ -19,7 +19,7 @@ interface FlatbufferRecord {
base: msg.Base;
}
-export function handleAsyncMsgFromRust(opId: number, ui8: Uint8Array): void {
+export function asyncMsgFromRust(opId: number, ui8: Uint8Array): void {
let { promiseId, base } = flatbufferRecordFromBuf(ui8);
const promise = promiseTable.get(promiseId);
util.assert(promise != null, `Expecting promise in table. ${promiseId}`);