mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
util.import: Localize unpack() in Lua 5.2 compatible way
This commit is contained in:
parent
847ba75e55
commit
792b0e8d79
1 changed files with 1 additions and 0 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
|
||||
|
||||
local unpack = table.unpack or unpack; --luacheck: ignore 113
|
||||
local t_insert = table.insert;
|
||||
function import(module, ...)
|
||||
local m = package.loaded[module] or require(module);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue