summaryrefslogtreecommitdiff
path: root/runtime/js/40_files.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/40_files.js
parenta20504642d083172f297543f9788b128e9c2e0bc (diff)
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'runtime/js/40_files.js')
-rw-r--r--runtime/js/40_files.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/runtime/js/40_files.js b/runtime/js/40_files.js
index d552b4ba5..82cf19ffc 100644
--- a/runtime/js/40_files.js
+++ b/runtime/js/40_files.js
@@ -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 },
);