()
| 333 | } |
| 334 | |
| 335 | func (p *proxyObject) isExtensible() bool { |
| 336 | target := p.target |
| 337 | if booleanTrapResult, ok := p.checkHandler().isExtensible(p.target); ok { |
| 338 | if te := target.self.isExtensible(); booleanTrapResult != te { |
| 339 | panic(p.val.runtime.NewTypeError("'isExtensible' on proxy: trap result does not reflect extensibility of proxy target (which is '%v')", te)) |
| 340 | } |
| 341 | return booleanTrapResult |
| 342 | } |
| 343 | |
| 344 | return target.self.isExtensible() |
| 345 | } |
| 346 | |
| 347 | func (p *proxyObject) preventExtensions(throw bool) bool { |
| 348 | target := p.target |
nothing calls this directly
no test coverage detected