diff options
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) { |