diff options
Diffstat (limited to 'runtime/js/40_process.js')
-rw-r--r-- | runtime/js/40_process.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/js/40_process.js b/runtime/js/40_process.js index 7a5284404..e3f6fc7a0 100644 --- a/runtime/js/40_process.js +++ b/runtime/js/40_process.js @@ -3,6 +3,7 @@ ((window) => { const core = window.Deno.core; + const ops = core.ops; const { FsFile } = window.__bootstrap.files; const { readAll } = window.__bootstrap.io; const { pathFromURL } = window.__bootstrap.util; @@ -16,7 +17,7 @@ } = window.__bootstrap.primordials; function opKill(pid, signo) { - core.opSync("op_kill", pid, signo); + ops.op_kill(pid, signo); } function opRunStatus(rid) { @@ -25,7 +26,7 @@ function opRun(request) { assert(request.cmd.length > 0); - return core.opSync("op_run", request); + return ops.op_run(request); } async function runStatus(rid) { |