mirror of https://github.com/gorhill/uBlock.git
Minor improvement to set-constant scriptlet
Disregard type matching for when the target property is `null` or is set to `null`.
This commit is contained in:
parent
043ae117c8
commit
c7dc65fe33
|
@ -506,7 +506,10 @@
|
|||
let aborted = false;
|
||||
const mustAbort = function(v) {
|
||||
if ( aborted ) { return true; }
|
||||
aborted = v !== undefined && cValue !== undefined && typeof v !== typeof cValue;
|
||||
aborted =
|
||||
(v !== undefined && v !== null) &&
|
||||
(cValue !== undefined && cValue !== null) &&
|
||||
(typeof v !== typeof cValue);
|
||||
return aborted;
|
||||
};
|
||||
const makeProxy = function(owner, chain) {
|
||||
|
|
Loading…
Reference in New Issue