summaryrefslogtreecommitdiff
path: root/cli/rt/40_plugins.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-09-16 22:22:43 +0200
committerGitHub <noreply@github.com>2020-09-16 22:22:43 +0200
commit6c4da0e429eb47dae6a220c5576a39f137615bb8 (patch)
treea8715428caea00105acc9a10fcd0f356085d3fa7 /cli/rt/40_plugins.js
parent104aebdfb5d01f7482bacef6d58c2ce16da44334 (diff)
refactor: remove dispatch_json.js from cli/rt and cli/tsc (#7521)
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
Diffstat (limited to 'cli/rt/40_plugins.js')
-rw-r--r--cli/rt/40_plugins.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/rt/40_plugins.js b/cli/rt/40_plugins.js
index dda28d6b2..f5aefd400 100644
--- a/cli/rt/40_plugins.js
+++ b/cli/rt/40_plugins.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 openPlugin(filename) {
- return sendSync("op_open_plugin", { filename });
+ return core.jsonOpSync("op_open_plugin", { filename });
}
window.__bootstrap.plugins = {