Fix more tests
This commit is contained in:
@@ -81,6 +81,8 @@ func ToLua(L *lua.LState, data interface{}) (lua.LValue, error) {
|
||||
return lua.LBool(v), nil
|
||||
case float64:
|
||||
return lua.LNumber(v), nil
|
||||
case nil:
|
||||
return lua.LNil, nil
|
||||
default:
|
||||
return nil, fmt.Errorf("unsupported data type: %T", data)
|
||||
}
|
||||
|
Reference in New Issue
Block a user