util.import: Explicitly export the global import function [luacheck]
authorKim Alvefur <zash@zash.se>
Wed, 07 Mar 2018 19:22:07 +0100
changeset 8573 a4ef8cfa97bd
parent 8572 f88bd2428bc2
child 8574 44217f40ff4a
util.import: Explicitly export the global import function [luacheck]
util/import.lua
--- a/util/import.lua	Wed Mar 07 19:21:24 2018 +0100
+++ b/util/import.lua	Wed Mar 07 19:22:07 2018 +0100
@@ -10,7 +10,7 @@
 
 local unpack = table.unpack or unpack; --luacheck: ignore 113 143
 local t_insert = table.insert;
-function import(module, ...)
+function _G.import(module, ...)
 	local m = package.loaded[module] or require(module);
 	if type(m) == "table" and ... then
 		local ret = {};