oops you were not meant to be here
This commit is contained in:
parent
07361ff6fe
commit
8eb4eab2b0
|
@ -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);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue