mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +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
|
@ -12,7 +12,7 @@
|
|||
offset,
|
||||
whence,
|
||||
) {
|
||||
return core.jsonOpSync("op_seek_sync", { rid, offset, whence });
|
||||
return core.opSync("op_seek_sync", { rid, offset, whence });
|
||||
}
|
||||
|
||||
function seek(
|
||||
|
@ -20,7 +20,7 @@
|
|||
offset,
|
||||
whence,
|
||||
) {
|
||||
return core.jsonOpAsync("op_seek_async", { rid, offset, whence });
|
||||
return core.opAsync("op_seek_async", { rid, offset, whence });
|
||||
}
|
||||
|
||||
function openSync(
|
||||
|
@ -29,7 +29,7 @@
|
|||
) {
|
||||
checkOpenOptions(options);
|
||||
const mode = options?.mode;
|
||||
const rid = core.jsonOpSync(
|
||||
const rid = core.opSync(
|
||||
"op_open_sync",
|
||||
{ path: pathFromURL(path), options, mode },
|
||||
);
|
||||
|
@ -43,7 +43,7 @@
|
|||
) {
|
||||
checkOpenOptions(options);
|
||||
const mode = options?.mode;
|
||||
const rid = await core.jsonOpAsync(
|
||||
const rid = await core.opAsync(
|
||||
"op_open_async",
|
||||
{ path: pathFromURL(path), options, mode },
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue