diff options
Diffstat (limited to 'js/rename.ts')
-rw-r--r-- | js/rename.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/rename.ts b/js/rename.ts index 153ed720a..049212c75 100644 --- a/js/rename.ts +++ b/js/rename.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"; /** Synchronously renames (moves) `oldpath` to `newpath`. If `newpath` already @@ -30,7 +30,7 @@ function req( oldpath: string, newpath: string ): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { - const builder = new flatbuffers.Builder(); + const builder = flatbuffers.createBuilder(); const oldpath_ = builder.createString(oldpath); const newpath_ = builder.createString(newpath); msg.Rename.startRename(builder); |