mirror of
https://github.com/lua/lua
synced 2025-03-15 10:12:52 +03:00

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.
…
…
…
…
…
…
…
…
…
…
…
…
…
…
Description
No description provided
Languages
C
67.3%
Lua
32.1%
Makefile
0.6%