Add missing return statement in autoload test case. Still doesn't work.

This commit is contained in:
Ian Farmer
2007-09-18 04:16:46 +00:00
parent 952a2f9f16
commit 108fabc58f
2 changed files with 3 additions and 1 deletions

View File

@@ -3,7 +3,9 @@ math = nil
local function autoload(table, key)
local chunk = loadfile(key..".luac")
table[key] = chunk()
local pkg = chunk()
table[key] = pkg
return pkg
end
setmetatable(_G, { __index = autoload } )

Binary file not shown.