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 | e3aa3f402aa5372a90a717174e28c84ed535aecc (patch) | |
tree | 06643659f4147acd046dff70ca132eeb0177d0db /util/multitable.lua | |
parent | bf9e8e1406b5383422ed58963f4c2bff648ac6be (diff) | |
download | prosody-e3aa3f402aa5372a90a717174e28c84ed535aecc.tar.gz prosody-e3aa3f402aa5372a90a717174e28c84ed535aecc.zip |
util.multitable: Localize unpack() in Lua 5.2 compatible way
Diffstat (limited to 'util/multitable.lua')
-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; |