summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/core/base/serialize.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/base/serialize.lua b/xmake/core/base/serialize.lua
index a49122308..2f8030338 100644
--- a/xmake/core/base/serialize.lua
+++ b/xmake/core/base/serialize.lua
@@ -323,7 +323,7 @@ function serialize.save(obj, opt)
end
-- binary mode
- local func, lerr = loadstring("return " .. result, "=")
+ local func, lerr = load("return " .. result, "=")
if lerr ~= nil then
return nil, lerr
end