Skip to content

Commit

Permalink
Added file names to classpath.dofile
Browse files Browse the repository at this point in the history
  • Loading branch information
ElvishJerricco committed Feb 24, 2015
1 parent ac2aead commit 66bc13d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jvml_data/vm/classpath.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function classpath.dofile(path, ...)
end, function(jarFs)
fh = fh or assert(jarFs.open(path, "r"), "File not found", 2)
end)
local f = assert(loadstring(fh.readAll()))
local f = assert(loadstring(fh.readAll(), fs.getName(path)))
setfenv(f, getfenv())
return f(...)
end

0 comments on commit 66bc13d

Please sign in to comment.