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_resources.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/rt/11_resources.js') diff --git a/cli/rt/11_resources.js b/cli/rt/11_resources.js index 247e033cc..9a1595b78 100644 --- a/cli/rt/11_resources.js +++ b/cli/rt/11_resources.js @@ -1,10 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { - const sendSync = window.__bootstrap.dispatchJson.sendSync; + const core = window.Deno.core; function resources() { - const res = sendSync("op_resources"); + const res = core.jsonOpSync("op_resources"); const resources = {}; for (const resourceTuple of res) { resources[resourceTuple[0]] = resourceTuple[1]; @@ -13,7 +13,7 @@ } function close(rid) { - sendSync("op_close", { rid }); + core.jsonOpSync("op_close", { rid }); } window.__bootstrap.resources = { -- cgit v1.2.3