From 6c4da0e429eb47dae6a220c5576a39f137615bb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 16 Sep 2020 22:22:43 +0200 Subject: refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521) Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync --- cli/rt/11_crypto.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/rt/11_crypto.js') 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; } -- cgit v1.2.3