Closed pablomayobre closed 7 years ago
Thanks to @egordorichev that helped me test this over at #44
Also the linting issue is probably due to an update in Luacheck and not because of my change, I didn't even touch line 151
I ignored the linter warning in the specified line, table.unpack
is not available in either Lua 5.1 nor LuaJIT, yet it's used as a fallback for unpack
. This is not an error on itself, but is listed as an error by Luacheck.
An alternative solution would be to remove the line 151 entirely since it's not needed if we always work in Lua 5.1/LuaJIT
Thanks !
No problem 😃
This issue was related to Lua not handling coroutines iterators right, the function being recursive generated multiple coroutine iterators and they didn't resume right.
The solution is to make the first loop non-recursive and create a secondary loop where the recursive function is called.
As proposed over at #36