Skip to content

Commit f4813c5

Browse files
committed
fix(memory): prevent unbounded growth of navigations array in PageCollector
1 parent 8c2a7fc commit f4813c5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/PageCollector.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,5 +409,6 @@ export class NetworkCollector extends PageCollector<HTTPRequest> {
409409
} else {
410410
navigations.unshift([]);
411411
}
412+
navigations.splice(3); // Hardcoded to match #maxNavigationSaved since it's private in base class
412413
}
413414
}

0 commit comments

Comments
 (0)