diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-10-02 23:15:04 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2014-10-02 23:15:04 +0200 |
commit | b7b69c20fae6b104e134dae90ac34a35221b82ed (patch) | |
tree | 65bc6bec2c952cf4f8569d772ef4ab6297aa8597 /tex/generic/context/luatex/luatex-basics-gen.lua | |
parent | 88d3592cd343756d65898179a0fbae66d6418112 (diff) | |
download | context-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.lua | 5 |
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: |