diff options
author | Kim Alvefur <zash@zash.se> | 2016-02-22 17:43:40 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-02-22 17:43:40 +0100 |
commit | f22342b075c527df8e4225dbbf932fe08d1155e3 (patch) | |
tree | 0e8f2f7460dd7dabc13e43ea7b4aa3ec4ceb21d0 | |
parent | e3aa3f402aa5372a90a717174e28c84ed535aecc (diff) | |
download | prosody-f22342b075c527df8e4225dbbf932fe08d1155e3.tar.gz prosody-f22342b075c527df8e4225dbbf932fe08d1155e3.zip |
util.iterators: Use table.pack() on Lua 5.2
-rw-r--r-- | util/iterators.lua | 2 |
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) |