haxe
haxe copied to clipboard
[lua] no loop to break
I don't know how to reproduce this yet, but on a coroutine branch I'm seeing this error on lua. Here's a stripped down version of the relevant output:
while (true) do
_hx_continuation._hx_hoisted15828 = function(i,_hx_completion)
local _hx_status, _hx_result = pcall(function()
while (true) do
local _hx_continuation = _hx_continuation1._hx_state;
if (_hx_continuation) == 1 then
elseif (_hx_continuation) == 2 then
_G.error("_hx_pcall_break", 0); end;
end;
return _hx_pcall_default
end)
if not _hx_status and _hx_result == "_hx_pcall_break" then
break
I think it incorrectly thinks we want to break out of the outer loop, while we actually want to break out of the inner one.