loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+

This commit is contained in:
Kim Alvefur 2016-02-18 14:57:04 +01:00
parent 68d19b7be1
commit bad300a675
2 changed files with 4 additions and 2 deletions

View file

@ -19,7 +19,8 @@ local st = require "util.stanza";
local t_insert, t_remove, t_concat = table.insert, table.remove, table.concat;
local error, setmetatable, type = error, setmetatable, type;
local ipairs, pairs, select, unpack = ipairs, pairs, select, unpack;
local ipairs, pairs, select = ipairs, pairs, select;
local unpack = table.unpack or unpack;
local tonumber, tostring = tonumber, tostring;
local require = require;