summaryrefslogtreecommitdiff
path: root/runtime/js/11_timers.js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js/11_timers.js')
-rw-r--r--runtime/js/11_timers.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/js/11_timers.js b/runtime/js/11_timers.js
index 200c764b7..046609f75 100644
--- a/runtime/js/11_timers.js
+++ b/runtime/js/11_timers.js
@@ -10,7 +10,7 @@
}
function opStartGlobalTimer(timeout) {
- return core.jsonOpSync("op_global_timer_start", { timeout });
+ return core.jsonOpSync("op_global_timer_start", timeout);
}
async function opWaitGlobalTimer() {
@@ -22,7 +22,7 @@
}
function sleepSync(millis = 0) {
- return core.jsonOpSync("op_sleep_sync", { millis });
+ return core.jsonOpSync("op_sleep_sync", millis);
}
// Derived from https://github.com/vadimg/js_bintrees. MIT Licensed.