1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-09-04 01:59:38 +02:00

Make sure journal slot pointers are properly reset

For when the same page store is recycled later.
This commit is contained in:
Raymond Hill 2021-01-02 12:07:31 -05:00
parent 873054435b
commit 752191a04f
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -357,6 +357,7 @@ const PageStore = class {
}
this.journal = [];
this.journalLastUncommittedOrigin = undefined;
this.journalLastCommitted = this.journalLastUncommitted = -1;
if ( pageStoreJunkyard.length < pageStoreJunkyardMax ) {
pageStoreJunkyard.push(this);
}