mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
refactor(deno): remove concept of bin & json ops (#10145)
This commit is contained in:
parent
a20504642d
commit
46b1c653c0
76 changed files with 534 additions and 1080 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue