From bc6e6101d30e9a5828b2821bfb9b455ffcd545fa Mon Sep 17 00:00:00 2001 From: Yanzhen Yu Date: Wed, 1 Apr 2026 12:00:00 +0800 Subject: [PATCH] clean addList when meet a corner case --- src/record/mutation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/record/mutation.ts b/src/record/mutation.ts index 6f8be15d..9d90daf9 100644 --- a/src/record/mutation.ts +++ b/src/record/mutation.ts @@ -296,6 +296,9 @@ export default class MutationBuffer { * it may be a bug or corner case. We need to escape the * dead while loop at once. */ + while (addList.head) { + addList.removeNode(addList.head.value); + } break; } candidate = node.previous;