https://github.com/Meae/luajit-sandbox I've put together a basic sandbox for luajit to resemble the coroutine library, prioritizing safety and simplicity over efficiency. The accounting isn't perfectly accurate, and environment sharing is intentionally allowed. If anyone sees other problems, particularly holes, please let me know! --Meae