(targetProp Value, target *Object, name fmt.Stringer)
| 447 | } |
| 448 | |
| 449 | func (p *proxyObject) proxyHasChecks(targetProp Value, target *Object, name fmt.Stringer) { |
| 450 | targetDesc := propToValueProp(targetProp) |
| 451 | if targetDesc != nil { |
| 452 | if !targetDesc.configurable { |
| 453 | panic(p.val.runtime.NewTypeError("'has' on proxy: trap returned falsish for property '%s' which exists in the proxy target as non-configurable", name.String())) |
| 454 | } |
| 455 | if !target.self.isExtensible() { |
| 456 | panic(p.val.runtime.NewTypeError("'has' on proxy: trap returned falsish for property '%s' but the proxy target is not extensible", name.String())) |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | |
| 461 | func (p *proxyObject) hasPropertyStr(name unistring.String) bool { |
| 462 | target := p.target |
no test coverage detected