Fix more tests

This commit is contained in:
2025-03-25 18:47:55 +01:00
parent fed140254b
commit aba10267d1
3 changed files with 35 additions and 33 deletions

View File

@@ -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)
}