Software /
code /
prosody
Diff
core/modulemanager.lua @ 7162:d0b64f1e4f5d
loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 18 Feb 2016 14:57:04 +0100 |
parent | 6779:6236668da30a |
child | 7163:eadbf19d0de0 |
line wrap: on
line diff
--- a/core/modulemanager.lua Thu Feb 18 13:48:45 2016 +0000 +++ b/core/modulemanager.lua Thu Feb 18 14:57:04 2016 +0100 @@ -23,7 +23,8 @@ local ipairs, pairs, type, tostring, t_insert = ipairs, pairs, type, tostring, table.insert; local debug_traceback = debug.traceback; -local unpack, select = unpack, select; +local select = select; +local unpack = table.unpack or unpack; local pcall = function(f, ...) local n = select("#", ...); local params = {...};