oops you were not meant to be here

This commit is contained in:
Nuckyz 2024-05-23 23:33:20 -03:00
parent 07361ff6fe
commit 8eb4eab2b0
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9

View file

@ -23,10 +23,6 @@ const handler: ProxyHandler<any> = {
[propName, (target: any, ...args: any[]) => Reflect[propName](target[proxyInnerGet](), ...args)] [propName, (target: any, ...args: any[]) => Reflect[propName](target[proxyInnerGet](), ...args)]
)), )),
set: (target, p, value) => { set: (target, p, value) => {
if (p === Symbol.toStringTag) {
return Reflect.set(target, p, value, target);
}
const innerTarget = target[proxyInnerGet](); const innerTarget = target[proxyInnerGet]();
return Reflect.set(innerTarget, p, value, innerTarget); return Reflect.set(innerTarget, p, value, innerTarget);
}, },