From 07361ff6feb8af4101fef5f593e1f1dfb2da6863 Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Thu, 23 May 2024 23:32:46 -0300 Subject: [PATCH] eww new line --- src/utils/proxyInner.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/proxyInner.ts b/src/utils/proxyInner.ts index 76eb06f1e..d02517882 100644 --- a/src/utils/proxyInner.ts +++ b/src/utils/proxyInner.ts @@ -23,6 +23,10 @@ const handler: ProxyHandler = { [propName, (target: any, ...args: any[]) => Reflect[propName](target[proxyInnerGet](), ...args)] )), set: (target, p, value) => { + if (p === Symbol.toStringTag) { + return Reflect.set(target, p, value, target); + } + const innerTarget = target[proxyInnerGet](); return Reflect.set(innerTarget, p, value, innerTarget); }, @@ -98,7 +102,6 @@ export function proxyInner( } throw new Error(primitiveErrMsg); - } });