aboutsummaryrefslogtreecommitdiffstats
path: root/util/iterators.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-02-22 18:46:59 +0100
committerKim Alvefur <zash@zash.se>2016-02-22 18:46:59 +0100
commit9dd235d53bbb77efa67543e0057d093789ca2ddd (patch)
tree15d7151c2609ac821e0dd08e27f67795300b090d /util/iterators.lua
parentcccb4ab09be9573c02e0d2684e062363cd7eb068 (diff)
parented8199402ff2a84e57f256818ebc2c505c2ac41d (diff)
downloadprosody-9dd235d53bbb77efa67543e0057d093789ca2ddd.tar.gz
prosody-9dd235d53bbb77efa67543e0057d093789ca2ddd.zip
Merge 0.10->trunk
Diffstat (limited to 'util/iterators.lua')
-rw-r--r--util/iterators.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/iterators.lua b/util/iterators.lua
index aa9c3ec0..868ba786 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -11,8 +11,9 @@
local it = {};
local t_insert = table.insert;
-local select, unpack, next = select, unpack, next;
-local function pack(...) return { n = select("#", ...), ... }; end
+local select, next = select, next;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
+local pack = table.pack or function (...) return { n = select("#", ...), ... }; end
-- Reverse an iterator
function it.reverse(f, s, var)