eww new line
This commit is contained in:
parent
64212512ca
commit
07361ff6fe
|
@ -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);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue