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/40_process.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'cli/rt/40_process.js') diff --git a/cli/rt/40_process.js b/cli/rt/40_process.js index 0e81b8b0f..e188e9c6a 100644 --- a/cli/rt/40_process.js +++ b/cli/rt/40_process.js @@ -1,23 +1,23 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { + const core = window.Deno.core; const { File } = window.__bootstrap.files; const { close } = window.__bootstrap.resources; const { readAll } = window.__bootstrap.buffer; - const { sendSync, sendAsync } = window.__bootstrap.dispatchJson; const { assert, pathFromURL } = window.__bootstrap.util; function opKill(pid, signo) { - sendSync("op_kill", { pid, signo }); + core.jsonOpSync("op_kill", { pid, signo }); } function opRunStatus(rid) { - return sendAsync("op_run_status", { rid }); + return core.jsonOpAsync("op_run_status", { rid }); } function opRun(request) { assert(request.cmd.length > 0); - return sendSync("op_run", request); + return core.jsonOpSync("op_run", request); } async function runStatus(rid) { -- cgit v1.2.3