s = new_sandbox_1() timeout = 1000*1000 -- 1 million Lua instructions s.set_timeout(timeout) s.run("i=0 while true do i=i+1 end") print("Timeout = "..timeout..". Looped this often: "..s.get_inner("i"))