diff --git a/binding_function.go b/binding_function.go index f459fb8bb..6b33c38e4 100644 --- a/binding_function.go +++ b/binding_function.go @@ -153,8 +153,11 @@ func (b *boundFunction) setInputValue(index int, typ reflect.Type, val interface } }() - // Do the conversion - result = reflect.ValueOf(val).Convert(typ) - + // Translate javascript null values + if val == nil { + result = reflect.Zero(typ) + } else { + result = reflect.ValueOf(val).Convert(typ) + } return result, err }