From 453c0b62f476465c8979f793299d7723e140aa45 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sat, 22 Jun 2024 05:50:09 -0300 Subject: [PATCH] ff --- src/utils/lazy.ts | 3 ++- src/utils/proxyInner.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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);