Improve fix for set-constant conflict

Related commit:
- 2546f39568
This commit is contained in:
Raymond Hill 2020-10-20 05:23:10 -04:00
parent 2546f39568
commit 5de0ce9757
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 1 additions and 1 deletions

View File

@ -746,6 +746,7 @@
const odesc = Object.getOwnPropertyDescriptor(owner, prop);
let prevGetter, prevSetter;
if ( odesc instanceof Object ) {
if ( odesc.configurable === false ) { return; }
if ( odesc.get instanceof Function ) {
prevGetter = odesc.get;
}
@ -808,7 +809,6 @@
return this.v;
},
setter: function(a) {
if ( a === this.v ) { return; }
this.v = a;
if ( a instanceof Object ) {
trapChain(a, chain);