aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/iterators.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/iterators.lua b/util/iterators.lua
index aa9c3ec0..e688980b 100644
--- a/util/iterators.lua
+++ b/util/iterators.lua
@@ -11,7 +11,8 @@
local it = {};
local t_insert = table.insert;
-local select, unpack, next = select, unpack, next;
+local select, next = select, next;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
local function pack(...) return { n = select("#", ...), ... }; end
-- Reverse an iterator