eww new line

This commit is contained in:
Nuckyz 2024-05-23 23:32:46 -03:00
parent 64212512ca
commit 07361ff6fe
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -23,6 +23,10 @@ const handler: ProxyHandler<any> = {
[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<T = AnyObject>(
}
throw new Error(primitiveErrMsg);
}
});