mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Improve trusted-suppress-native-method scriptlet
Add ability to log stack trace when verbose mode is enabled.
This commit is contained in:
parent
42c23f10d4
commit
9b2cf0169a
1 changed files with 2 additions and 1 deletions
|
|
@ -3501,7 +3501,8 @@ function trustedSuppressNativeMethod(
|
|||
}
|
||||
}
|
||||
if ( stackNeedle.matchAll !== true ) {
|
||||
if ( matchesStackTraceFn(stackNeedle) === false ) {
|
||||
const logLevel = safe.logLevel > 1 ? 'all' : '';
|
||||
if ( matchesStackTraceFn(stackNeedle, logLevel) === false ) {
|
||||
return context.reflect();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue