mirror of
https://github.com/lua/lua
synced 2026-06-08 15:34:49 +00:00
bfbff3703e
When closing variables during 'coroutine.close' or 'lua_resetthread', the status of a coroutine must be set to LUA_OK; a coroutine should not run with any other status. (See assertion in 'lua_callk'.) After the reset, the status should be kept as normal, as any error was already reported.