diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-22 17:40:42 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-22 17:40:42 +0100 |
commit | 29c6aed489216d03ecc070ee262d0943465441a7 (patch) | |
tree | 06643659f4147acd046dff70ca132eeb0177d0db | |
parent | a2c0f6d6458193baa67e1df44a9c94fec357011b (diff) | |
download | prosody-29c6aed489216d03ecc070ee262d0943465441a7.tar.gz prosody-29c6aed489216d03ecc070ee262d0943465441a7.zip |
util.multitable: Localize unpack() in Lua 5.2 compatible way
-rw-r--r-- | util/multitable.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/util/multitable.lua b/util/multitable.lua index 7a2d2b2a..e4321d3d 100644 --- a/util/multitable.lua +++ b/util/multitable.lua @@ -8,7 +8,8 @@ local select = select; local t_insert = table.insert; -local unpack, pairs, next, type = unpack, pairs, next, type; +local pairs, next, type = pairs, next, type; +local unpack = table.unpack or unpack; --luacheck: ignore 113 local _ENV = nil; |