mirror of https://github.com/gorhill/uBlock.git
Avoid trapping already trapped properties
Related feedback: - https://github.com/uBlockOrigin/uBlock-issues/issues/156#issuecomment-712249945 When the client code assigned a variable to itself, this would cause the scriptlet to try to re-trap already trapped properties.
This commit is contained in:
parent
62fd5da323
commit
2546f39568
|
@ -808,6 +808,7 @@
|
||||||
return this.v;
|
return this.v;
|
||||||
},
|
},
|
||||||
setter: function(a) {
|
setter: function(a) {
|
||||||
|
if ( a === this.v ) { return; }
|
||||||
this.v = a;
|
this.v = a;
|
||||||
if ( a instanceof Object ) {
|
if ( a instanceof Object ) {
|
||||||
trapChain(a, chain);
|
trapChain(a, chain);
|
||||||
|
|
Loading…
Reference in New Issue