This commit is contained in:
Nuckyz 2024-06-22 05:50:09 -03:00
parent 9446efadd5
commit 453c0b62f4
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
2 changed files with 4 additions and 2 deletions

View file

@ -59,8 +59,9 @@ const handler: ProxyHandler<any> = {
return keys;
},
getOwnPropertyDescriptor: (target, p) => {
if (typeof p === "string" && unconfigurable.includes(p))
if (typeof p === "string" && unconfigurable.includes(p)) {
return Reflect.getOwnPropertyDescriptor(target, p);
}
const descriptor = Reflect.getOwnPropertyDescriptor(target[SYM_LAZY_GET](), p);
if (descriptor) Object.defineProperty(target, p, descriptor);

View file

@ -34,8 +34,9 @@ const handler: ProxyHandler<any> = {
return keys;
},
getOwnPropertyDescriptor: (target, p) => {
if (typeof p === "string" && unconfigurable.includes(p))
if (typeof p === "string" && unconfigurable.includes(p)) {
return Reflect.getOwnPropertyDescriptor(target, p);
}
const descriptor = Reflect.getOwnPropertyDescriptor(target[SYM_PROXY_INNER_GET](), p);
if (descriptor) Object.defineProperty(target, p, descriptor);