1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-07-05 11:37:01 +02:00

Ensure getter/setter are called with proper context

Related issue:
- https://github.com/uBlockOrigin/uAssets/issues/9110
This commit is contained in:
Raymond Hill 2021-05-18 09:01:40 -04:00
parent 9e394aa02b
commit e4b8f2ef2d
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2

View File

@ -81,13 +81,13 @@
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;
}