refactor(deno): remove concept of bin & json ops (#10145)

This commit is contained in:
Aaron O'Mullan 2021-04-12 21:55:05 +02:00 committed by GitHub
parent a20504642d
commit 46b1c653c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
76 changed files with 534 additions and 1080 deletions

View file

@ -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 };