luau/tests/conformance/interrupt.lua

26 lines
335 B
Lua
Raw Normal View History

2022-03-18 08:06:25 +08: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-14 06:59:53 +08:00
function bar()
local i = 0
while i < 10 do
i += i + 1
end
end
bar()
2023-03-25 01:34:14 +08:00
function baz()
end
baz()
2022-03-18 08:06:25 +08:00
return "OK"