diff options
Diffstat (limited to 'js/copy_file.ts')
-rw-r--r-- | js/copy_file.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/js/copy_file.ts b/js/copy_file.ts index 79d74e034..255d977bf 100644 --- a/js/copy_file.ts +++ b/js/copy_file.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"; /** Copies the contents of a file to another by name synchronously. @@ -36,7 +36,7 @@ function req( from: string, to: string ): [flatbuffers.Builder, msg.Any, flatbuffers.Offset] { - const builder = new flatbuffers.Builder(); + const builder = flatbuffers.createBuilder(); const from_ = builder.createString(from); const to_ = builder.createString(to); msg.CopyFile.startCopyFile(builder); |