(thisValue any, args ...any)
| 206 | } |
| 207 | |
| 208 | func (v *Value) Call(thisValue any, args ...any) *Value { |
| 209 | thisV, e := v.vm.o.ToValue(thisValue) |
| 210 | if e != nil { |
| 211 | v.vm.ThrowTypeError(e.Error()) |
| 212 | } |
| 213 | rv, e := v.v.Call(thisV, args...) |
| 214 | if e != nil { |
| 215 | v.vm.ThrowTypeError(e.Error()) |
| 216 | } |
| 217 | return newValue(v.vm, rv) |
| 218 | } |
| 219 | |
| 220 | func parseValue(ov *Value, v reflect.Value) { |
| 221 | if ov == nil || !v.IsValid() { |
nothing calls this directly
no test coverage detected