diff options
Diffstat (limited to 'js/get_random_values.ts')
-rw-r--r-- | js/get_random_values.ts | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/get_random_values.ts b/js/get_random_values.ts index eb46ed009..d5c0828c5 100644 --- a/js/get_random_values.ts +++ b/js/get_random_values.ts @@ -1,7 +1,5 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import * as msg from "gen/cli/msg_generated"; -import * as flatbuffers from "./flatbuffers"; -import * as dispatch from "./dispatch"; +import { sendSync, msg, flatbuffers } from "./dispatch_flatbuffers"; import { assert } from "./util"; function req( @@ -30,6 +28,6 @@ export function getRandomValues< >(typedArray: T): T { assert(typedArray !== null, "Input must not be null"); assert(typedArray.length <= 65536, "Input must not be longer than 65536"); - dispatch.sendSync(...req(typedArray as ArrayBufferView)); + sendSync(...req(typedArray as ArrayBufferView)); return typedArray; } |