Diff

util/import.lua @ 7183:b606a5b32e91

util.import: Localize unpack() in Lua 5.2 compatible way
author Kim Alvefur <zash@zash.se>
date Mon, 22 Feb 2016 17:37:55 +0100
parent 5776:bd0ff8ae98a8
child 8389:5d866eb8f18f
line wrap: on
line diff
--- a/util/import.lua	Mon Feb 22 17:34:42 2016 +0100
+++ b/util/import.lua	Mon Feb 22 17:37:55 2016 +0100
@@ -8,6 +8,7 @@
 
 
 
+local unpack = table.unpack or unpack; --luacheck: ignore 113
 local t_insert = table.insert;
 function import(module, ...)
 	local m = package.loaded[module] or require(module);