(targetProp, value Value, name fmt.Stringer)
| 643 | } |
| 644 | |
| 645 | func (p *proxyObject) proxySetPostCheck(targetProp, value Value, name fmt.Stringer) { |
| 646 | if prop, ok := targetProp.(*valueProperty); ok { |
| 647 | if prop.accessor { |
| 648 | if !prop.configurable && prop.setterFunc == nil { |
| 649 | panic(p.val.runtime.NewTypeError("'set' on proxy: trap returned truish for property '%s' which exists in the proxy target as a non-configurable and non-writable accessor property without a setter", name.String())) |
| 650 | } |
| 651 | } else if !prop.configurable && !prop.writable && !p.__sameValue(prop.value, value) { |
| 652 | panic(p.val.runtime.NewTypeError("'set' on proxy: trap returned truish for property '%s' which exists in the proxy target as a non-configurable and non-writable data property with a different value", name.String())) |
| 653 | } |
| 654 | } |
| 655 | } |
| 656 | |
| 657 | func (p *proxyObject) proxySetStr(name unistring.String, value, receiver Value, throw bool) bool { |
| 658 | target := p.target |
no test coverage detected