mirror of
https://github.com/lua/lua
synced 2024-11-22 12:51:30 +03:00
389116d8ab
Back to how it was, a coroutine does not unwind its stack in case of errors (and therefore do not close its to-be-closed variables). This allows the stack to be examined after the error. The program can use 'coroutine.kill' to close the variables. The function created by 'coroutine.wrap', however, closes the coroutine's variables in case of errors, as it is impossible to examine the stack any way. |
||
---|---|---|
.. | ||
2html | ||
manual.of |