summaryrefslogtreecommitdiff
path: root/ext/web/02_timers.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/web/02_timers.js')
-rw-r--r--ext/web/02_timers.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/web/02_timers.js b/ext/web/02_timers.js
index 19ebfaa0e..27e2e953d 100644
--- a/ext/web/02_timers.js
+++ b/ext/web/02_timers.js
@@ -54,8 +54,10 @@ const timerTasks = [];
let timerNestingLevel = 0;
function handleTimerMacrotask() {
+ // We have no work to do, tell the runtime that we don't
+ // need to perform microtask checkpoint.
if (timerTasks.length === 0) {
- return true;
+ return undefined;
}
const task = ArrayPrototypeShift(timerTasks);