|
|
@ -83,13 +83,13 @@ func conformJSValueToType(funcType reflect.Type, this js.Value, values []js.Valu
|
|
|
|
in := make([]reflect.Value, 0, len(values))
|
|
|
|
in := make([]reflect.Value, 0, len(values))
|
|
|
|
for i, v := range values {
|
|
|
|
for i, v := range values {
|
|
|
|
paramType := funcType.In(i)
|
|
|
|
paramType := funcType.In(i)
|
|
|
|
x := reflect.Zero(paramType).Interface()
|
|
|
|
ptrX := reflect.New(paramType).Interface()
|
|
|
|
err := FromJSValue(v, &x)
|
|
|
|
err := FromJSValue(v, ptrX)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return nil, err
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
in = append(in, reflect.ValueOf(x))
|
|
|
|
in = append(in, reflect.ValueOf(ptrX).Elem())
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return in, nil
|
|
|
|
return in, nil
|
|
|
|