clean addList when meet a corner case

This commit is contained in:
Yanzhen Yu
2021-01-14 22:50:56 +08:00
parent c712fc77a6
commit 7c1ec50d6f

View File

@@ -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;