(trapResult, throw bool)
| 375 | } |
| 376 | |
| 377 | func (p *proxyObject) proxyDefineOwnPropertyPreCheck(trapResult, throw bool) bool { |
| 378 | if !trapResult { |
| 379 | p.val.runtime.typeErrorResult(throw, "'defineProperty' on proxy: trap returned falsish") |
| 380 | return false |
| 381 | } |
| 382 | return true |
| 383 | } |
| 384 | |
| 385 | func (p *proxyObject) proxyDefineOwnPropertyPostCheck(prop Value, target *Object, descr PropertyDescriptor) { |
| 386 | targetDesc := propToValueProp(prop) |
no test coverage detected