diff options
author | Hans Hagen <pragma@wxs.nl> | 2018-08-15 19:40:19 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2018-08-15 19:40:19 +0200 |
commit | d6850b00fa0f937514389e8d090db87b0163a703 (patch) | |
tree | 145d9be2d7f5c5bddf908c014954911e50e1c6ea /tex/context/base/mkiv/luat-env.lua | |
parent | 36a37da721032b8d02fad41f22ad717ee8136f34 (diff) | |
download | context-d6850b00fa0f937514389e8d090db87b0163a703.tar.gz |
2018-08-15 18:54:00
Diffstat (limited to 'tex/context/base/mkiv/luat-env.lua')
-rw-r--r-- | tex/context/base/mkiv/luat-env.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/luat-env.lua b/tex/context/base/mkiv/luat-env.lua index 5b46b4036..a01a8cf84 100644 --- a/tex/context/base/mkiv/luat-env.lua +++ b/tex/context/base/mkiv/luat-env.lua @@ -11,7 +11,7 @@ -- sense. Much of this evolved before bytecode arrays were available and so a lot of -- code has disappeared already. -local rawset, rawget, loadfile, assert = rawset, rawget, loadfile, assert +local rawset, rawget, loadfile = rawset, rawget, loadfile local trace_locating = false trackers.register("resolvers.locating", function(v) trace_locating = v end) @@ -123,7 +123,7 @@ function environment.loadluafile(filename, version) luaname = file.addsuffix(basename,luasuffixes.lua) lucname = file.addsuffix(basename,luasuffixes.luc) else - luaname = basename -- forced suffix + luaname = filename -- forced suffix lucname = nil end -- when not overloaded by explicit suffix we look for a luc file first @@ -136,7 +136,7 @@ function environment.loadluafile(filename, version) chunk = loadfile(fullname) -- this way we don't need a file exists check end if chunk then - assert(chunk)() + chunk() if version then -- we check of the version number of this chunk matches local v = version -- can be nil @@ -168,7 +168,7 @@ function environment.loadluafile(filename, version) report_lua("unknown file %a",filename) end else - assert(chunk)() + chunk() return true end end |