mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
This commit is contained in:
parent
68d19b7be1
commit
bad300a675
2 changed files with 4 additions and 2 deletions
|
@ -23,7 +23,8 @@ local setmetatable, rawget = setmetatable, rawget;
|
|||
local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert;
|
||||
|
||||
local debug_traceback = debug.traceback;
|
||||
local unpack, select = unpack, select;
|
||||
local select = select;
|
||||
local unpack = table.unpack or unpack;
|
||||
local pcall = function(f, ...)
|
||||
local n = select("#", ...);
|
||||
local params = {...};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue