summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-26 22:57:41 +0800
committerruki <[email protected]>2025-08-28 11:35:54 +0800
commitb1a196f9795aa03dbffb58895a37304149895e6a (patch)
treebe5d468d3e2dc88b9c193ffc0c8b8320a9ac9e62
parent4c6f1c7e6c69a30af016f37ae70fd5fe49f2b3d6 (diff)
fix serialize
-rw-r--r--xmake/core/base/serialize.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/base/serialize.lua b/xmake/core/base/serialize.lua
index 87c810536..274687f49 100644
--- a/xmake/core/base/serialize.lua
+++ b/xmake/core/base/serialize.lua
@@ -204,10 +204,7 @@ function serialize._resolvefunction(root, fenv, bytecode)
if upname == nil or upname == "" then
break
end
- local upvalue = fenv[upname]
- if upvalue ~= nil then
- debug.setupvalue(func, i, upvalue)
- end
+ debug.setupvalue(func, i, fenv[upname])
end
end
return func