summaryrefslogtreecommitdiff
path: root/runtime/js/40_files.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/40_files.js')
-rw-r--r--runtime/js/40_files.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/js/40_files.js b/runtime/js/40_files.js
index d2148be2f..12e406aba 100644
--- a/runtime/js/40_files.js
+++ b/runtime/js/40_files.js
@@ -3,6 +3,7 @@
((window) => {
const core = window.Deno.core;
+ const ops = core.ops;
const { read, readSync, write, writeSync } = window.__bootstrap.io;
const { ftruncate, ftruncateSync, fstat, fstatSync } = window.__bootstrap.fs;
const { pathFromURL } = window.__bootstrap.util;
@@ -19,7 +20,7 @@
offset,
whence,
) {
- return core.opSync("op_seek_sync", { rid, offset, whence });
+ return ops.op_seek_sync({ rid, offset, whence });
}
function seek(
@@ -36,8 +37,7 @@
) {
checkOpenOptions(options);
const mode = options?.mode;
- const rid = core.opSync(
- "op_open_sync",
+ const rid = ops.op_open_sync(
{ path: pathFromURL(path), options, mode },
);