core/moduleapi.lua
changeset 9690 e52e4e6e7ffb
parent 9559 e4c09e335bd9
child 9737 9ab9aabafa80
--- a/core/moduleapi.lua	Thu Dec 06 17:54:50 2018 +0100
+++ b/core/moduleapi.lua	Sat Dec 08 16:35:00 2018 +0100
@@ -20,7 +20,7 @@
 local ipairs, pairs, select = ipairs, pairs, select;
 local tonumber, tostring = tonumber, tostring;
 local require = require;
-local pack = table.pack or function(...) return {n=select("#",...), ...}; end -- table.pack is only in 5.2
+local pack = table.pack or require "util.table".pack; -- table.pack is only in 5.2
 local unpack = table.unpack or unpack; --luacheck: ignore 113 -- renamed in 5.2
 
 local prosody = prosody;