Add support to return int based value from native functions golang implementations

This commit is contained in:
Rohit Jangid 2023-03-16 10:04:31 +05:30 committed by Dave Cunningham
parent 4df8c17aa3
commit 772ebba669

View File

@ -949,6 +949,8 @@ func jsonToValue(i *interpreter, v interface{}) (value, error) {
case bool:
return makeValueBoolean(v), nil
case int, int8, int16, int32, int64:
return makeDoubleCheck(i, v.(float64))
case float64:
return makeDoubleCheck(i, v)