clean addList when meet a corner case

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent d79ad0b8c3
commit bc6e6101d3

View File

@@ -296,6 +296,9 @@ export default class MutationBuffer {
* it may be a bug or corner case. We need to escape the * it may be a bug or corner case. We need to escape the
* dead while loop at once. * dead while loop at once.
*/ */
while (addList.head) {
addList.removeNode(addList.head.value);
}
break; break;
} }
candidate = node.previous; candidate = node.previous;