We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
while(true)
checkLoops: allExceptWhileTrue
1 parent 87b091a commit 1441ef3Copy full SHA for 1441ef3
packages/rrweb/src/record/mutation.ts
@@ -202,6 +202,7 @@ export default class MutationBuffer {
202
} else {
203
n = this.addedSet.values().next().value as Node; // pop
204
205
+ // eslint-disable-next-line no-constant-condition
206
while (true) {
207
parentNode = dom.parentNode(n);
208
if (this.addedSet.has(parentNode as Node)) {
@@ -236,6 +237,7 @@ export default class MutationBuffer {
236
237
n = parentNode.lastChild as Node;
238
nextSibling = null;
239
240
241
242
nextSibling = n.nextSibling;
243
if (this.addedSet.has(nextSibling as Node)) {
0 commit comments