提交 ec7f3ce1 编写于 作者: K Kevin (Kun) "Kassimo" Qian 提交者: Bert Belder

timer: due/now Math.max instead of min (#3477)

上级 4b9953b6
......@@ -192,7 +192,7 @@ function firePendingTimers(): void {
pendingScheduleTimers = [];
// Reschedule for next round of timeout.
const nextDueNode = dueTree.min();
const due = nextDueNode && Math.min(nextDueNode.due, now);
const due = nextDueNode && Math.max(nextDueNode.due, now);
setOrClearGlobalTimeout(due, now);
} else {
// Fire a single timer and allow its children microtasks scheduled first.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册