mirror of
https://github.com/TangentFoxy/lua-sandbox.git
synced 2025-07-28 11:02:21 +00:00
made sandbox immune to while trues
This commit is contained in:
@@ -38,6 +38,10 @@ describe('sandbox', function()
|
||||
assert.equal('hellohello', string.rep('hello', 2))
|
||||
end)
|
||||
|
||||
it('#focus throws an error with infinite loops', function()
|
||||
assert.has_error(function() sandbox("while true do end") end)
|
||||
end)
|
||||
|
||||
|
||||
|
||||
end)
|
||||
|
Reference in New Issue
Block a user