diff options
Diffstat (limited to 'runtime/js/12_io.js')
-rw-r--r-- | runtime/js/12_io.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/js/12_io.js b/runtime/js/12_io.js index ab0839ec6..e41657d96 100644 --- a/runtime/js/12_io.js +++ b/runtime/js/12_io.js @@ -7,6 +7,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const { Uint8Array, ArrayPrototypePush, @@ -91,7 +92,7 @@ return 0; } - const nread = core.opSync("op_read_sync", rid, buffer); + const nread = ops.op_read_sync(rid, buffer); return nread === 0 ? null : nread; } @@ -107,7 +108,7 @@ } function writeSync(rid, data) { - return core.opSync("op_write_sync", rid, data); + return ops.op_write_sync(rid, data); } function write(rid, data) { |