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/30_metrics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/rt/30_metrics.js') diff --git a/cli/rt/30_metrics.js b/cli/rt/30_metrics.js index 59a76d910..d44a629cb 100644 --- a/cli/rt/30_metrics.js +++ b/cli/rt/30_metrics.js @@ -1,10 +1,10 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { - const { sendSync } = window.__bootstrap.dispatchJson; + const core = window.Deno.core; function metrics() { - return sendSync("op_metrics"); + return core.jsonOpSync("op_metrics"); } window.__bootstrap.metrics = { -- cgit v1.2.3