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_fs_events.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_fs_events.js')
-rw-r--r-- | cli/rt/40_fs_events.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/rt/40_fs_events.js b/cli/rt/40_fs_events.js index b9121c155..43c0a4b92 100644 --- a/cli/rt/40_fs_events.js +++ b/cli/rt/40_fs_events.js @@ -1,7 +1,7 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. ((window) => { - const { sendSync, sendAsync } = window.__bootstrap.dispatchJson; + const core = window.Deno.core; const { errors } = window.__bootstrap.errors; const { close } = window.__bootstrap.resources; @@ -10,7 +10,7 @@ constructor(paths, options) { const { recursive } = options; - this.#rid = sendSync("op_fs_events_open", { recursive, paths }); + this.#rid = core.jsonOpSync("op_fs_events_open", { recursive, paths }); } get rid() { @@ -19,7 +19,7 @@ async next() { try { - return await sendAsync("op_fs_events_poll", { + return await core.jsonOpAsync("op_fs_events_poll", { rid: this.rid, }); } catch (error) { |