Made serialization work on straight lua.

This commit is contained in:
Izaya 2015-10-18 02:40:47 +11:00
부모 4eda641338
커밋 6a951a0e1e
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

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