Browse Source

Made serialization work on straight lua.

pull/1/head
Izaya 6 years ago
parent
commit
6a951a0e1e
  1. 1
      serialization.lua

1
serialization.lua

@ -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…
Cancel
Save