util.multitable: Localize unpack() in Lua 5.2 compatible way
authorKim Alvefur <zash@zash.se>
Mon, 22 Feb 2016 16:40:42 +0000 (17:40 +0100)
committerKim Alvefur <zash@zash.se>
Mon, 22 Feb 2016 16:40:42 +0000 (17:40 +0100)
util/multitable.lua

index 7a2d2b2a4224548977339e66fbb0c3cc4eca8631..e4321d3d34e120e8740b1db80278cabdbbe93e3d 100644 (file)
@@ -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;