ff
This commit is contained in:
parent
9446efadd5
commit
453c0b62f4
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue