Skip to content

"setmetatable" and "getmetatable" are not available #121

@marcotc

Description

@marcotc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions