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
62fd5da323
commit
2546f39568
1 changed files with 1 additions and 0 deletions
|
|
@ -808,6 +808,7 @@
|
|||
return this.v;
|
||||
},
|
||||
setter: function(a) {
|
||||
if ( a === this.v ) { return; }
|
||||
this.v = a;
|
||||
if ( a instanceof Object ) {
|
||||
trapChain(a, chain);
|
||||
|
|
|
|||
Loading…
Reference in a new issue