mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
Ensure astSelectorsFromSelectorList receive expected arguments
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/2554
This commit is contained in:
parent
6f0ab28258
commit
56b8201196
1 changed files with 1 additions and 0 deletions
|
@ -3348,6 +3348,7 @@ class ExtSelectorCompiler {
|
|||
}
|
||||
|
||||
astSelectorsFromSelectorList(args) {
|
||||
if ( Array.isArray(args) === false ) { return; }
|
||||
if ( args.length < 3 ) { return; }
|
||||
if ( args[0].data instanceof Object === false ) { return; }
|
||||
if ( args[0].data.type !== 'SelectorList' ) { return; }
|
||||
|
|
Loading…
Reference in a new issue