Add missing return statement in autoload test case. Still doesn't work.
This commit is contained in:
@@ -3,7 +3,9 @@ math = nil
|
|||||||
|
|
||||||
local function autoload(table, key)
|
local function autoload(table, key)
|
||||||
local chunk = loadfile(key..".luac")
|
local chunk = loadfile(key..".luac")
|
||||||
table[key] = chunk()
|
local pkg = chunk()
|
||||||
|
table[key] = pkg
|
||||||
|
return pkg
|
||||||
end
|
end
|
||||||
|
|
||||||
setmetatable(_G, { __index = autoload } )
|
setmetatable(_G, { __index = autoload } )
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user