(trapResult, throw bool, name fmt.Stringer)
| 636 | } |
| 637 | |
| 638 | func (p *proxyObject) proxySetPreCheck(trapResult, throw bool, name fmt.Stringer) bool { |
| 639 | if !trapResult { |
| 640 | p.val.runtime.typeErrorResult(throw, "'set' on proxy: trap returned falsish for property '%s'", name.String()) |
| 641 | } |
| 642 | return trapResult |
| 643 | } |
| 644 | |
| 645 | func (p *proxyObject) proxySetPostCheck(targetProp, value Value, name fmt.Stringer) { |
| 646 | if prop, ok := targetProp.(*valueProperty); ok { |
no test coverage detected