diff options
author | Inteon <42113979+inteon@users.noreply.github.com> | 2021-03-18 14:10:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-18 14:10:27 +0100 |
commit | 20627c91364d2a992fdfaaad7c8ae86454dbc2ed (patch) | |
tree | acef1a279e92fe072da2cce2178889f6124c47c7 /runtime/js/11_timers.js | |
parent | 0e70d9e59bc0e70f1921bb217ee00fc2e6facb69 (diff) |
refactor: update minimal ops & rename to buffer ops (#9719)
This commit rewrites "dispatch_minimal" into "dispatch_buffer".
It's part of an effort to unify JS interface for ops for both json
and minimal (buffer) ops.
Before this commit "minimal ops" could be either sync or async
depending on the return type from the op, but this commit changes
it to have separate signatures for sync and async ops (just like
in case of json ops).
Diffstat (limited to 'runtime/js/11_timers.js')
-rw-r--r-- | runtime/js/11_timers.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/11_timers.js b/runtime/js/11_timers.js index 4c693aa4a..f07622388 100644 --- a/runtime/js/11_timers.js +++ b/runtime/js/11_timers.js @@ -4,7 +4,7 @@ ((window) => { const assert = window.__bootstrap.util.assert; const core = window.Deno.core; - const { sendSync } = window.__bootstrap.dispatchMinimal; + const { bufferOpSync } = window.__bootstrap.dispatchBuffer; function opStopGlobalTimer() { core.jsonOpSync("op_global_timer_stop"); @@ -20,7 +20,7 @@ const nowBytes = new Uint8Array(8); function opNow() { - sendSync("op_now", 0, nowBytes); + bufferOpSync("op_now", 0, nowBytes); return new DataView(nowBytes.buffer).getFloat64(); } |