mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
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
418dc5d8d1
commit
b5b0be0bf8
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue