aboutsummaryrefslogtreecommitdiffstats
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
commitf22342b075c527df8e4225dbbf932fe08d1155e3 (patch)
tree0e8f2f7460dd7dabc13e43ea7b4aa3ec4ceb21d0
parente3aa3f402aa5372a90a717174e28c84ed535aecc (diff)
downloadprosody-f22342b075c527df8e4225dbbf932fe08d1155e3.tar.gz
prosody-f22342b075c527df8e4225dbbf932fe08d1155e3.zip
util.iterators: Use table.pack() on Lua 5.2
-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)