Fix incorrect use of this in static method

Related issue:
- https://github.com/uBlockOrigin/uBlock-issues/issues/568

Regression from:
- 19ece97b0c
This commit is contained in:
Raymond Hill 2019-05-11 17:16:00 -04:00
parent 8a7e704080
commit 57890d60ff
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -585,7 +585,7 @@ const FilterWildcard1 = class {
}
static compile(details) {
if ( this.token === '*' ) { return; }
if ( details.token === '*' ) { return; }
if ( details.anchor !== 0 ) { return; }
const s = details.f;
let pos = s.indexOf('*');
@ -700,7 +700,7 @@ const FilterWildcard1HnAnchored = class {
}
static compile(details) {
if ( this.token === '*' ) { return; }
if ( details.token === '*' ) { return; }
if ( (details.anchor & 0x0b001) !== 0 ) { return; }
const s = details.f;
let pos = s.indexOf('*');