Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6258254

Browse files
authored
core(tracehouse): fix OOM when computing attributable URLs (#16585)
1 parent 1e89e06 commit 6258254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/lib/tracehouse/main-thread-tasks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,8 +515,8 @@ class MainThreadTasks {
515515
if (!url) continue;
516516
// Add unique URLs to our overall tree.
517517
if (!allURLsInTree.includes(url)) allURLsInTree.push(url);
518-
// Don't add consecutive, duplicate URLs
519-
if (attributableURLs[attributableURLs.length - 1] === url) continue;
518+
// Don't add duplicate URLs
519+
if (attributableURLs.includes(url)) continue;
520520
attributableURLs.push(url);
521521
}
522522

0 commit comments

Comments
 (0)