luau/tests/conformance/interrupt.lua

21 lines
308 B
Lua
Raw Normal View History

2022-03-18 00:06:25 +00:00
-- This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
print("testing interrupts")
function foo()
for i=1,10 do end
return
end
foo()
2022-10-13 23:59:53 +01:00
function bar()
local i = 0
while i < 10 do
i += i + 1
end
end
bar()
2022-03-18 00:06:25 +00:00
return "OK"