Sorry, I just noticed you've already handled it. I really wish there was a better way to do this than to use the debug.setmetatable though. Maybe it's too late to propose something now for 5.3. On Wed, Dec 17, 2014 at 3:51 PM, Elias Hogstvedt <eliashogstvedt@xxxxxxxxx> wrote: > > how would you handle string operations like ("a"):rep(9999999) ? > > On Tue, Dec 16, 2014 at 7:19 PM, Meae Flowright <scratchnloved@xxxxxxxxx> > wrote: >> >> 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 >> >