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

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