(args []Value, newTarget *Object)
| 897 | } |
| 898 | |
| 899 | func (p *proxyObject) construct(args []Value, newTarget *Object) *Object { |
| 900 | if p.ctor == nil { |
| 901 | panic(p.val.runtime.NewTypeError("proxy target is not a constructor")) |
| 902 | } |
| 903 | if newTarget == nil { |
| 904 | newTarget = p.val |
| 905 | } |
| 906 | if v, ok := p.checkHandler().construct(p.target, args, newTarget); ok { |
| 907 | return p.val.runtime.toObject(v) |
| 908 | } |
| 909 | return p.ctor(args, newTarget) |
| 910 | } |
| 911 | |
| 912 | func (p *proxyObject) __isCompatibleDescriptor(extensible bool, desc *PropertyDescriptor, current *valueProperty) bool { |
| 913 | if current == nil { |
nothing calls this directly
no test coverage detected