diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-09-16 22:22:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-16 22:22:43 +0200 |
commit | 6c4da0e429eb47dae6a220c5576a39f137615bb8 (patch) | |
tree | a8715428caea00105acc9a10fcd0f356085d3fa7 /cli/rt/40_tls.js | |
parent | 104aebdfb5d01f7482bacef6d58c2ce16da44334 (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_tls.js')
-rw-r--r-- | cli/rt/40_tls.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/rt/40_tls.js b/cli/rt/40_tls.js index f4ae55112..d66e0bd01 100644 --- a/cli/rt/40_tls.js +++ b/cli/rt/40_tls.js @@ -1,25 +1,25 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { + const core = window.Deno.core; const { Listener, Conn } = window.__bootstrap.net; - const { sendAsync, sendSync } = window.__bootstrap.dispatchJson; function opConnectTls( args, ) { - return sendAsync("op_connect_tls", args); + return core.jsonOpAsync("op_connect_tls", args); } function opAcceptTLS(rid) { - return sendAsync("op_accept_tls", { rid }); + return core.jsonOpAsync("op_accept_tls", { rid }); } function opListenTls(args) { - return sendSync("op_listen_tls", args); + return core.jsonOpSync("op_listen_tls", args); } function opStartTls(args) { - return sendAsync("op_start_tls", args); + return core.jsonOpAsync("op_start_tls", args); } async function connectTls({ |