summaryrefslogtreecommitdiff
path: root/cli/rt/11_crypto.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-16 22:22:43 +0200
committerGitHub <noreply@github.com>2020-09-16 22:22:43 +0200
commit6c4da0e429eb47dae6a220c5576a39f137615bb8 (patch)
treea8715428caea00105acc9a10fcd0f356085d3fa7 /cli/rt/11_crypto.js
parent104aebdfb5d01f7482bacef6d58c2ce16da44334 (diff)
refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
Diffstat (limited to 'cli/rt/11_crypto.js')
-rw-r--r--cli/rt/11_crypto.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/rt/11_crypto.js b/cli/rt/11_crypto.js
index ab4a49200..32b026a78 100644
--- a/cli/rt/11_crypto.js
+++ b/cli/rt/11_crypto.js
@@ -1,7 +1,7 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
((window) => {
- const { sendSync } = window.__bootstrap.dispatchJson;
+ const core = window.Deno.core;
const { assert } = window.__bootstrap.util;
function getRandomValues(typedArray) {
@@ -12,7 +12,7 @@
typedArray.byteOffset,
typedArray.byteLength,
);
- sendSync("op_get_random_values", {}, ui8);
+ core.jsonOpSync("op_get_random_values", {}, ui8);
return typedArray;
}