summaryrefslogtreecommitdiff
path: root/runtime/js/11_timers.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/11_timers.js
parenta20504642d083172f297543f9788b128e9c2e0bc (diff)
refactor(deno): remove concept of bin & json ops (#10145)
Diffstat (limited to 'runtime/js/11_timers.js')
-rw-r--r--runtime/js/11_timers.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/js/11_timers.js b/runtime/js/11_timers.js
index eef1d39b2..cfd9ad72d 100644
--- a/runtime/js/11_timers.js
+++ b/runtime/js/11_timers.js
@@ -6,23 +6,23 @@
const core = window.Deno.core;
function opStopGlobalTimer() {
- core.jsonOpSync("op_global_timer_stop");
+ core.opSync("op_global_timer_stop");
}
function opStartGlobalTimer(timeout) {
- return core.jsonOpSync("op_global_timer_start", timeout);
+ return core.opSync("op_global_timer_start", timeout);
}
async function opWaitGlobalTimer() {
- await core.jsonOpAsync("op_global_timer");
+ await core.opAsync("op_global_timer");
}
function opNow() {
- return core.jsonOpSync("op_now");
+ return core.opSync("op_now");
}
function sleepSync(millis = 0) {
- return core.jsonOpSync("op_sleep_sync", millis);
+ return core.opSync("op_sleep_sync", millis);
}
// Derived from https://github.com/vadimg/js_bintrees. MIT Licensed.