diff --git a/src/utils/lazy.ts b/src/utils/lazy.ts index 14349379f..fee6e8133 100644 --- a/src/utils/lazy.ts +++ b/src/utils/lazy.ts @@ -59,8 +59,9 @@ const handler: ProxyHandler = { 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); diff --git a/src/utils/proxyInner.ts b/src/utils/proxyInner.ts index 50fa26dc2..2f701fe64 100644 --- a/src/utils/proxyInner.ts +++ b/src/utils/proxyInner.ts @@ -34,8 +34,9 @@ const handler: ProxyHandler = { 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);