mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-02 00:42:45 +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
@ -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 New Issue
Block a user