summaryrefslogtreecommitdiff
path: root/runtime/js/40_fs_events.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-12 21:55:05 +0200
committerGitHub <noreply@github.com>2021-04-12 15:55:05 -0400
commit46b1c653c0c433932908b7610f60b409af134c76 (patch)
tree00d8b59c8c4e9b90538d548ebd828d2b3f94d4fd /runtime/js/40_fs_events.js
parenta20504642d083172f297543f9788b128e9c2e0bc (diff)
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'runtime/js/40_fs_events.js')
-rw-r--r--runtime/js/40_fs_events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/40_fs_events.js b/runtime/js/40_fs_events.js
index 06ad3a29c..a1a9877b4 100644
--- a/runtime/js/40_fs_events.js
+++ b/runtime/js/40_fs_events.js
@@ -10,7 +10,7 @@
constructor(paths, options) {
const { recursive } = options;
- this.#rid = core.jsonOpSync("op_fs_events_open", { recursive, paths });
+ this.#rid = core.opSync("op_fs_events_open", { recursive, paths });
}
get rid() {
@@ -19,7 +19,7 @@
async next() {
try {
- const value = await core.jsonOpAsync("op_fs_events_poll", this.rid);
+ const value = await core.opAsync("op_fs_events_poll", this.rid);
return value
? { value, done: false }
: { value: undefined, done: true };