Cleanup and fixery.

This commit is contained in:
Florian Nücke 2014-10-17 19:05:39 +02:00
parent f61d159b28
commit f82669e3df

View File

@ -133,7 +133,7 @@ do
return l
end
function capture_to_close(ms)
local function capture_to_close(ms)
local level = ms.level
while level > 0 do
level = level - 1
@ -625,21 +625,6 @@ end
-------------------------------------------------------------------------------
local loadHookMetatable
loadHookMetatable = {
[persistKey and persistKey() or "LuaJ"] = function()
return function()
-- Has to be re-applied after loading saved state because global
-- metatables (such as the string one) aren't persisted automatically.
installPatternSandbox()
return setmetatable({}, loadHookMetatable)
end
end
}
local loadHook = setmetatable({}, loadHookMetatable)
-------------------------------------------------------------------------------
local function spcall(...)
local result = table.pack(pcall(...))
if not result[1] then