summaryrefslogtreecommitdiff
path: root/tex/context/base/luat-cod.lua
diff options
context:
space:
mode:
authorMarius <mariausol@gmail.com>2012-07-23 21:40:15 +0300
committerMarius <mariausol@gmail.com>2012-07-23 21:40:15 +0300
commit1258e9df5026925ba69b6184b984d4fa70ed3ffa (patch)
tree25c150da0dfedf3c053b3504f787341c04f8cb35 /tex/context/base/luat-cod.lua
parenta2b160d4a0730ede825a2cad70013cbd4c872c7d (diff)
downloadcontext-1258e9df5026925ba69b6184b984d4fa70ed3ffa.tar.gz
beta 2012.07.23 20:18
Diffstat (limited to 'tex/context/base/luat-cod.lua')
-rw-r--r--tex/context/base/luat-cod.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tex/context/base/luat-cod.lua b/tex/context/base/luat-cod.lua
index 8c721aa15..6960f2811 100644
--- a/tex/context/base/luat-cod.lua
+++ b/tex/context/base/luat-cod.lua
@@ -39,7 +39,7 @@ function lua.registercode(filename,version)
if not bytedone[barename] then
local code = environment.luafilechunk(filename)
if code then
- assert(code)()
+-- assert(code)()
bytedone[barename] = true
if environment.initex then
local n = lua.lastbytecode + 1
@@ -98,6 +98,9 @@ if not environment.luafilechunk then
end
local data = loadfile(filename)
texio.write("<",data and "+ " or "- ",filename,">")
+ if data then
+ data()
+ end
return data
end