aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/util.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua
index 59aff9a7..cca7aa85 100644
--- a/src/luarocks/util.lua
+++ b/src/luarocks/util.lua
@@ -63,7 +63,9 @@ local scheduled_functions = {}
63 63
64 64
65function util.schedule_function(f, ...) 65function util.schedule_function(f, ...)
66 local item = { fn = f, args = table.pack(...) } 66 local pack = table.pack or function(...) return { n = select("#", ...), ... } end --TEST
67
68 local item = { fn = f, args = pack(...) }
67 table.insert(scheduled_functions, item) 69 table.insert(scheduled_functions, item)
68 return item 70 return item
69end 71end