mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 09:07:54 +01:00
Assign value in set-constant regardless of configurable
property
Related issue: - https://github.com/uBlockOrigin/uBlock-issues/issues/1694
This commit is contained in:
parent
6e6697fab6
commit
a9e6f9c72c
1 changed files with 1 additions and 3 deletions
|
@ -924,9 +924,7 @@
|
|||
const odesc = Object.getOwnPropertyDescriptor(owner, prop);
|
||||
let prevGetter, prevSetter;
|
||||
if ( odesc instanceof Object ) {
|
||||
if ( odesc.configurable === false ) {
|
||||
owner[prop] = cValue;
|
||||
}
|
||||
owner[prop] = cValue;
|
||||
if ( odesc.get instanceof Function ) {
|
||||
prevGetter = odesc.get;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue