diff --git a/packages/adblocker-benchmarks/blockers/ublock.js b/packages/adblocker-benchmarks/blockers/ublock.js index f960d7b1fb..bc593cd008 100644 --- a/packages/adblocker-benchmarks/blockers/ublock.js +++ b/packages/adblocker-benchmarks/blockers/ublock.js @@ -28,7 +28,15 @@ module.exports = class UBlockOrigin { return engine.deserialize(serialized); } - match({ url, frameUrl, type }) { - return engine.matchRequest({ url, originURL: frameUrl, type }) === 1; + matchRequest({ url, frameUrl, type }) { + return engine.matchRequest({ url, originURL: frameUrl, type }); + } + + match(details) { + return this.matchRequest(details) === 1; + } + + matchDebug(details) { + return this.matchRequest(details) !== 0 ? engine.toLogData().raw : null; } };