# HG changeset patch # User Kim Alvefur # Date 1544283300 -3600 # Node ID e52e4e6e7ffb02bf63c7b78070eb99a5d00e9fdc # Parent e98b901446d02d83dc0459dff485a4a4169e6ddb moduleapi: Use pack from util.table diff -r e98b901446d0 -r e52e4e6e7ffb core/moduleapi.lua --- 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;