Diff

util/multitable.lua @ 7185:5687788a2e4d

util.multitable: Localize unpack() in Lua 5.2 compatible way
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 17:40:42 +0100
parent 6777:5de6b93d0190
child 8382:e5d00bf4a4d5
line wrap: on
line diff
--- a/util/multitable.lua	Mon Feb 22 17:38:46 2016 +0100
+++ b/util/multitable.lua	Mon Feb 22 17:40:42 2016 +0100
@@ -8,7 +8,8 @@
 
 local select = select;
 local t_insert = table.insert;
-local unpack, pairs, next, type = unpack, pairs, next, type;
+local pairs, next, type = pairs, next, type;
+local unpack = table.unpack or unpack; --luacheck: ignore 113
 
 local _ENV = nil;