From edc87ac75eb469c9a199178109199df510c56057 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Sun, 18 Aug 2024 17:10:55 -0300 Subject: [PATCH] fix for real now --- src/utils/proxyInner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/proxyInner.ts b/src/utils/proxyInner.ts index 90576d1b0..0e1be40ed 100644 --- a/src/utils/proxyInner.ts +++ b/src/utils/proxyInner.ts @@ -115,7 +115,7 @@ export function proxyInner( // Avoid binding toString if the inner value is null. // This can happen if we are setting the inner value as another instance of proxyInner, which will cause that proxy to instantly evaluate and throw an error - if (typeof innerValue === "function" && innerValue[SYM_PROXY_INNER_VALUE] != null) { + if (typeof innerValue === "function" && (innerValue[SYM_PROXY_INNER_GET] == null || innerValue[SYM_PROXY_INNER_VALUE] != null)) { proxy.toString = innerValue.toString.bind(innerValue); } }