From edcbd8f990f96b68ca02d7e5413064c1f34c53ba Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 11 May 2019 17:16:00 -0400 Subject: [PATCH] Fix incorrect use of `this` in static method Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/568 Regression from: - https://github.com/gorhill/uBlock/commit/19ece97b0cee3b527d65135f4f36eef9b1fb9c74 --- src/js/static-net-filtering.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/static-net-filtering.js b/src/js/static-net-filtering.js index 169e6251c..b71be872b 100644 --- a/src/js/static-net-filtering.js +++ b/src/js/static-net-filtering.js @@ -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('*');