Made serialization work on straight lua.
This commit is contained in:
parent
4eda641338
commit
6a951a0e1e
@ -119,7 +119,6 @@ function serialization.serialize(value, pretty)
|
||||
end
|
||||
|
||||
function serialization.unserialize(data)
|
||||
checkArg(1, data, "string")
|
||||
local result, reason = load("return " .. data, "=data", _, {math={huge=math.huge}})
|
||||
if not result then
|
||||
return nil, reason
|
||||
|
Loading…
Reference in New Issue
Block a user