setmetatable and getmetatable global functions are not available for usage in the current sandbox implementation. This makes it harder to create complex programs.
I assume they are absent due to security concerns. I believe that setting the __metatable field in all internal tables should suffice to protect them (see http://www.lua.org/manual/5.1/manual.html#pdf-setmetatable).
I can provide an implementation if this feature is desirable.
setmetatableandgetmetatableglobal functions are not available for usage in the current sandbox implementation. This makes it harder to create complex programs.I assume they are absent due to security concerns. I believe that setting the
__metatablefield in all internal tables should suffice to protect them (see http://www.lua.org/manual/5.1/manual.html#pdf-setmetatable).I can provide an implementation if this feature is desirable.