summaryrefslogtreecommitdiff
path: root/runtime/js/12_io.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/12_io.js
parenta20504642d083172f297543f9788b128e9c2e0bc (diff)
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'runtime/js/12_io.js')
-rw-r--r--runtime/js/12_io.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/js/12_io.js b/runtime/js/12_io.js
index a6b6aeebd..8df3de92f 100644
--- a/runtime/js/12_io.js
+++ b/runtime/js/12_io.js
@@ -81,7 +81,7 @@
return 0;
}
- const nread = core.binOpSync("op_read_sync", rid, buffer);
+ const nread = core.opSync("op_read_sync", rid, buffer);
return nread === 0 ? null : nread;
}
@@ -94,17 +94,17 @@
return 0;
}
- const nread = await core.binOpAsync("op_read_async", rid, buffer);
+ const nread = await core.opAsync("op_read_async", rid, buffer);
return nread === 0 ? null : nread;
}
function writeSync(rid, data) {
- return core.binOpSync("op_write_sync", rid, data);
+ return core.opSync("op_write_sync", rid, data);
}
async function write(rid, data) {
- return await core.binOpAsync("op_write_async", rid, data);
+ return await core.opAsync("op_write_async", rid, data);
}
const READ_PER_ITER = 32 * 1024;