Skip to content
Permalink
Browse files
Ensure getter/setter are called with proper context
Related issue:
- uBlockOrigin/uAssets#9110

Related commits:
- gorhill/uBlock@e4b8f2e

Co-authored-by: Raymond Hill <rhill@raymondhill.net>
  • Loading branch information
JustOff and gorhill committed Jun 11, 2021
1 parent 3791062 commit 3afe893069e517f7fdbf9e7bb00f46409ec74d99
Showing with 2 additions and 2 deletions.
  1. +2 −2 assets/resources/resources.txt
@@ -1704,13 +1704,13 @@ abort-current-inline-script.js application/javascript
get: function() {
validate();
return desc instanceof Object
? desc.get()
? desc.get.call(owner)
: value;
},
set: function(a) {
validate();
if ( desc instanceof Object ) {
desc.set(a);
desc.set.call(owner, a);
} else {
value = a;
}

0 comments on commit 3afe893

Please sign in to comment.