Steps to reproduce:
- Add to user rules:
adguard.com#%#//scriptlet('prevent-addEventListener', 'testEvent')
- Navigate to - https://adguard.com/
- Open console and run:
console.log('Start');
document.addEventListener(null, ()=>{});
console.log('End');
It should print Start and End.
Currently it prints Start only, because addEventListener throws error when null is used as a type.