From 4e636e1b6e38a83de06689257cc3d4ecb7285122 Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] fix timer clear method with do not reassign actions pointer --- src/replay/timer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replay/timer.ts b/src/replay/timer.ts index d6db248b..ec457e24 100644 --- a/src/replay/timer.ts +++ b/src/replay/timer.ts @@ -49,7 +49,7 @@ export default class Timer { } public clear() { - this.actions = []; + this.actions.length = 0; } private findActionIndex(action: actionWithDelay): number {