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/11_url.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/11_url.js')
-rw-r--r-- | cli/rt/11_url.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/rt/11_url.js b/cli/rt/11_url.js index 86dcbf26d..e47f710c8 100644 --- a/cli/rt/11_url.js +++ b/cli/rt/11_url.js @@ -1,9 +1,9 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { + const core = window.Deno.core; const { getRandomValues } = window.__bootstrap.crypto; const { customInspect } = window.__bootstrap.console; - const { sendSync } = window.__bootstrap.dispatchJson; const { isIterable, requiredArguments } = window.__bootstrap.webUtil; /** https://url.spec.whatwg.org/#idna */ @@ -11,7 +11,7 @@ domain, { beStrict = false } = {}, ) { - return sendSync("op_domain_to_ascii", { domain, beStrict }); + return core.jsonOpSync("op_domain_to_ascii", { domain, beStrict }); } function decodeSearchParam(p) { |