summaryrefslogtreecommitdiff
path: root/tex/context/base/mkiv/l-sandbox.lua
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/mkiv/l-sandbox.lua')
-rw-r--r--tex/context/base/mkiv/l-sandbox.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/tex/context/base/mkiv/l-sandbox.lua b/tex/context/base/mkiv/l-sandbox.lua
index 7a89aa8cd..2ecec0023 100644
--- a/tex/context/base/mkiv/l-sandbox.lua
+++ b/tex/context/base/mkiv/l-sandbox.lua
@@ -17,7 +17,7 @@ local global = _G
local next = next
local unpack = unpack or table.unpack
local type = type
-local tprint = texio.write_nl or print
+local tprint = texio and texio.write_nl or print
local tostring = tostring
local format = string.format -- no formatters yet
local concat = table.concat
@@ -310,3 +310,4 @@ if supported("lfs") then
lfs.shortname = register(lfs.shortname, "lfs.shortname")
lfs.symlinkattributes = register(lfs.symlinkattributes,"lfs.symlinkattributes")
end
+