diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-22 17:37:55 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-22 17:37:55 +0100 |
commit | ae71e17952aca0fb6d9b6461d216a71cd6acb709 (patch) | |
tree | 9295f2262e0d713fb084a75ee41f6b9c5a103691 /util | |
parent | 5539087eefcd40d1b5b302140592c53d836d5a5f (diff) | |
download | prosody-ae71e17952aca0fb6d9b6461d216a71cd6acb709.tar.gz prosody-ae71e17952aca0fb6d9b6461d216a71cd6acb709.zip |
util.import: Localize unpack() in Lua 5.2 compatible way
Diffstat (limited to 'util')
-rw-r--r-- | util/import.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/import.lua b/util/import.lua index 174da0ca..c2b9dce1 100644 --- a/util/import.lua +++ b/util/import.lua @@ -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); |