Browse Source

Made serialization work on straight lua.

pull/1/head
XeonSquared 4 years ago
parent
commit
6a951a0e1e
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      serialization.lua

+ 0
- 1
serialization.lua View File

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