summaryrefslogtreecommitdiff
path: root/tex/generic/context/luatex/luatex-basics-gen.lua
diff options
context:
space:
mode:
authorContext Git Mirror Bot <phg42.2a@gmail.com>2014-10-02 23:15:04 +0200
committerContext Git Mirror Bot <phg42.2a@gmail.com>2014-10-02 23:15:04 +0200
commitb7b69c20fae6b104e134dae90ac34a35221b82ed (patch)
tree65bc6bec2c952cf4f8569d772ef4ab6297aa8597 /tex/generic/context/luatex/luatex-basics-gen.lua
parent88d3592cd343756d65898179a0fbae66d6418112 (diff)
downloadcontext-b7b69c20fae6b104e134dae90ac34a35221b82ed.tar.gz
2014-10-02 23:09:00
Diffstat (limited to 'tex/generic/context/luatex/luatex-basics-gen.lua')
-rw-r--r--tex/generic/context/luatex/luatex-basics-gen.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/tex/generic/context/luatex/luatex-basics-gen.lua b/tex/generic/context/luatex/luatex-basics-gen.lua
index c19a49af3..e7cdc7b39 100644
--- a/tex/generic/context/luatex/luatex-basics-gen.lua
+++ b/tex/generic/context/luatex/luatex-basics-gen.lua
@@ -351,7 +351,12 @@ end
--
function table.setmetatableindex(t,f)
+ if type(t) ~= "table" then
+ f = f or t
+ t = { }
+ end
setmetatable(t,{ __index = f })
+ return t
end
-- helper for plain: