core/moduleapi.lua
changeset 7167 af26e8eb591f
parent 7145 67226eaef97c
parent 7166 eadbf19d0de0
child 7346 1da5a710848d
equal deleted inserted replaced
7164:8380b595a33b 7167:af26e8eb591f
    21 local error, setmetatable, type = error, setmetatable, type;
    21 local error, setmetatable, type = error, setmetatable, type;
    22 local ipairs, pairs, select = ipairs, pairs, select;
    22 local ipairs, pairs, select = ipairs, pairs, select;
    23 local tonumber, tostring = tonumber, tostring;
    23 local tonumber, tostring = tonumber, tostring;
    24 local require = require;
    24 local require = require;
    25 local pack = table.pack or function(...) return {n=select("#",...), ...}; end -- table.pack is only in 5.2
    25 local pack = table.pack or function(...) return {n=select("#",...), ...}; end -- table.pack is only in 5.2
    26 local unpack = table.unpack or unpack; -- renamed in 5.2
    26 local unpack = table.unpack or unpack; --luacheck: ignore 113 -- renamed in 5.2
    27 
    27 
    28 local prosody = prosody;
    28 local prosody = prosody;
    29 local hosts = prosody.hosts;
    29 local hosts = prosody.hosts;
    30 
    30 
    31 -- FIXME: This assert() is to try and catch an obscure bug (2013-04-05)
    31 -- FIXME: This assert() is to try and catch an obscure bug (2013-04-05)