summaryrefslogtreecommitdiff
path: root/js/read_dir.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/read_dir.ts')
-rw-r--r--js/read_dir.ts4
1 files changed, 1 insertions, 3 deletions
diff --git a/js/read_dir.ts b/js/read_dir.ts
index 9aa7c3375..1394c8514 100644
--- a/js/read_dir.ts
+++ b/js/read_dir.ts
@@ -8,9 +8,7 @@ import { assert } from "./util";
function req(path: string): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] {
const builder = flatbuffers.createBuilder();
const path_ = builder.createString(path);
- msg.ReadDir.startReadDir(builder);
- msg.ReadDir.addPath(builder, path_);
- const inner = msg.ReadDir.endReadDir(builder);
+ const inner = msg.ReadDir.createReadDir(builder, path_);
return [builder, msg.Any.ReadDir, inner];
}