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;