aboutsummaryrefslogtreecommitdiffstats
path: root/util/iterators.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-22 17:43:40 +0100
committerKim Alvefur <zash@zash.se>2016-02-22 17:43:40 +0100
commit11ebf4f1dc56644712e12e451e9b37c472c69238 (patch)
tree0e8f2f7460dd7dabc13e43ea7b4aa3ec4ceb21d0 /util/iterators.lua
parent29c6aed489216d03ecc070ee262d0943465441a7 (diff)
downloadprosody-11ebf4f1dc56644712e12e451e9b37c472c69238.tar.gz
prosody-11ebf4f1dc56644712e12e451e9b37c472c69238.zip
util.iterators: Use table.pack() on Lua 5.2
Diffstat (limited to 'util/iterators.lua')
-rw-r--r--util/iterators.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/iterators.lua b/util/iterators.lua
index e688980b..868ba786 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -13,7 +13,7 @@ local it = {};
local t_insert = table.insert;
local select, next = select, next;
local unpack = table.unpack or unpack; --luacheck: ignore 113
-local function pack(...) return { n = select("#", ...), ... }; end
+local pack = table.pack or function (...) return { n = select("#", ...), ... }; end
-- Reverse an iterator
function it.reverse(f, s, var)