wplua: expose setmetatable / getmetatable in the sandbox

This commit is contained in:
George Kiagiadakis
2022-11-10 21:05:15 +02:00
committed by Julian Bouzas
parent 374e4ecaff
commit c6c740e94a

View File

@@ -28,6 +28,7 @@ function create_sandbox_env()
pcall select print tostring type xpcall require
table string math package utf8 debug coroutine
os.clock os.difftime os.time os.date os.getenv
setmetatable getmetatable
]]):gsub('%S+', populate_env)
-- Additionally export everything in SANDBOX_EXPORT