util.format: Import unpack from table lib in Lua 5.2+

This commit is contained in:
Kim Alvefur 2017-11-23 20:55:21 +01:00
parent 2ae9db48c5
commit 2facc56274

View file

@ -4,7 +4,7 @@
local tostring = tostring;
local select = select;
local unpack = unpack;
local unpack = table.unpack or unpack; -- luacheck: ignore 113/unpack
local type = type;
local function format(formatstring, ...)