chore(*) lua > 5.1 compatibility

* add a setfenv implementation
This commit is contained in:
eskerda
2020-12-11 17:21:33 +01:00
committed by Enrique García Cota
parent a4c0a9ad3d
commit 552459192f
2 changed files with 21 additions and 2 deletions

View File

@@ -9,8 +9,6 @@ It's possible to provide extra functions via the `options.env` parameter.
Infinite loops are prevented via the `debug` library.
For now, sandbox.lua only works with Lua 5.1.x.
Usage
=====