summaryrefslogtreecommitdiff
path: root/js/remove.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/remove.ts')
-rw-r--r--js/remove.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/remove.ts b/js/remove.ts
index 1195f3a30..6b242e2c6 100644
--- a/js/remove.ts
+++ b/js/remove.ts
@@ -1,6 +1,6 @@
// Copyright 2018 the Deno authors. All rights reserved. MIT license.
import * as msg from "gen/msg_generated";
-import { flatbuffers } from "flatbuffers";
+import * as flatbuffers from "./flatbuffers";
import * as dispatch from "./dispatch";
/** Removes the named file or (empty) directory synchronously. Would throw
@@ -47,7 +47,7 @@ function req(
path: string,
recursive: boolean
): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] {
- const builder = new flatbuffers.Builder();
+ const builder = flatbuffers.createBuilder();
const path_ = builder.createString(path);
msg.Remove.startRemove(builder);
msg.Remove.addPath(builder, path_);