summaryrefslogtreecommitdiff
path: root/cli/rt/11_crypto.js
diff options
context:
space:
mode:
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;
}