Software /
code /
prosody
Diff
core/moduleapi.lua @ 9686:e52e4e6e7ffb
moduleapi: Use pack from util.table
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 08 Dec 2018 16:35:00 +0100 |
parent | 9556:e4c09e335bd9 |
child | 9733:9ab9aabafa80 |
line wrap: on
line diff
--- 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;