mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 09:37:12 +02:00
Improve reliability of set-constant scriptlet
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1694
This commit is contained in:
parent
7ee9c21b37
commit
a21ecafbc6
@ -924,7 +924,9 @@
|
|||||||
const odesc = Object.getOwnPropertyDescriptor(owner, prop);
|
const odesc = Object.getOwnPropertyDescriptor(owner, prop);
|
||||||
let prevGetter, prevSetter;
|
let prevGetter, prevSetter;
|
||||||
if ( odesc instanceof Object ) {
|
if ( odesc instanceof Object ) {
|
||||||
if ( odesc.configurable === false ) { return; }
|
if ( odesc.configurable === false ) {
|
||||||
|
owner[prop] = cValue;
|
||||||
|
}
|
||||||
if ( odesc.get instanceof Function ) {
|
if ( odesc.get instanceof Function ) {
|
||||||
prevGetter = odesc.get;
|
prevGetter = odesc.get;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user