Go to file
Roberto Ierusalimschy 389116d8ab Coroutines do not unwind the stack in case of errors
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.
2019-05-09 11:13:45 -03:00
manual Coroutines do not unwind the stack in case of errors 2019-05-09 11:13:45 -03:00
testes Coroutines do not unwind the stack in case of errors 2019-05-09 11:13:45 -03:00
all 'all' script automatically 'make's everything 2018-12-19 13:15:14 -02:00
bugs Bug: Long brackets with a huge number of '=' causes overflow 2018-12-14 13:12:01 -02:00
lapi.c Small optimizations in range checks 2019-03-27 14:56:10 -03:00
lapi.h To-be-closed variables in the C API 2018-10-25 15:30:15 -03:00
lauxlib.c New function 'luaL_addgsub' 2019-04-24 14:41:41 -03:00
lauxlib.h New function 'luaL_addgsub' 2019-04-24 14:41:41 -03:00
lbaselib.c 'print' does not call 'tostring' to format its arguments 2019-04-10 12:58:14 -03:00
lcode.c Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
lcode.h Big revamp in the implmentation of labels/gotos 2018-10-29 14:26:48 -03:00
lcorolib.c Coroutines do not unwind the stack in case of errors 2019-05-09 11:13:45 -03:00
lctype.c Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
lctype.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
ldblib.c Added field 'srclen' to structure 'lua_Debug' 2019-04-04 11:45:26 -03:00
ldebug.c Added field 'srclen' to structure 'lua_Debug' 2019-04-04 11:45:26 -03:00
ldebug.h A to-be-closed variable must have a closable value (or be nil) 2018-11-29 16:02:44 -02:00
ldo.c Coroutines do not unwind the stack in case of errors 2019-05-09 11:13:45 -03:00
ldo.h First "complete" implementation of to-be-closed variables 2018-10-17 10:44:42 -03:00
ldump.c Small changes in the header of binary files 2019-03-19 15:31:08 -03:00
lfunc.c Details 2019-03-13 13:16:53 -03:00
lfunc.h New functions 'lua_resetthread' and 'coroutine.kill' 2018-12-13 13:07:53 -02:00
lgc.c Avoid moving the collector while in 'GCSenteratomic' state 2019-04-01 14:22:07 -03:00
lgc.h Avoid the creation of too many strings in 'package' 2019-05-03 10:14:25 -03:00
linit.c Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
liolib.c To-be-closed variable in 'for' loop separated from the state 2018-11-07 14:42:05 -02:00
ljumptab.h Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
llex.c A few more improvements in 'luaO_pushvfstring' 2019-05-03 10:18:44 -03:00
llex.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
llimits.h Avoid the creation of too many strings in 'package' 2019-05-03 10:14:25 -03:00
lmathlib.c 'math.randomseed()' sets a somewhat random seed 2019-03-13 14:47:48 -03:00
lmem.c Detail: bad assertion in 'luaM_free_' 2018-10-23 12:58:38 -03:00
lmem.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
loadlib.c Avoid the creation of too many strings in 'package' 2019-05-03 10:14:25 -03:00
lobject.c A few more improvements in 'luaO_pushvfstring' 2019-05-03 10:18:44 -03:00
lobject.h Added field 'srclen' to structure 'lua_Debug' 2019-04-04 11:45:26 -03:00
lopcodes.c Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
lopcodes.h Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
lopnames.h Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
loslib.c Removed resource-related "emergency collections" 2018-10-31 16:25:29 -03:00
lparser.c Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
lparser.h Details 2018-11-22 13:56:04 -02:00
lprefix.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
lstate.c Fixed bug with to-be-closed variables in base C level 2019-04-26 11:13:01 -03:00
lstate.h Changes in the warning system 2019-03-14 15:30:54 -03:00
lstring.c Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
lstring.h Strings inside Lua are not fully aligned 2019-03-13 14:14:40 -03:00
lstrlib.c Avoid using large buffers in 'string.format' 2019-04-12 11:48:24 -03:00
ltable.c Small optimizations in range checks 2019-03-27 14:56:10 -03:00
ltable.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
ltablib.c Small optimizations in range checks 2019-03-27 14:56:10 -03:00
ltests.c Revamp of 'lua_pushfstring' / 'luaO_pushvfstring' 2019-04-24 14:01:20 -03:00
ltests.h LUAI_MAXCCALLS renamed LUAI_MAXCSTACK 2019-03-25 14:12:06 -03:00
ltm.c Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
ltm.h Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00
lua.c Removed use of 'rl_inhibit_completion' in 'lua.c' 2018-08-16 14:38:05 -03:00
lua.h Added field 'srclen' to structure 'lua_Debug' 2019-04-04 11:45:26 -03:00
luaconf.h A few more improvements in 'luaO_pushvfstring' 2019-05-03 10:18:44 -03:00
lualib.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
lundump.c 'require' returns where module was found 2019-04-17 14:57:29 -03:00
lundump.h Small changes in the header of binary files 2019-03-19 15:31:08 -03:00
lutf8lib.c Name 'nonstrict' in the UTF-8 library changed to 'lax' 2019-03-19 11:15:49 -03:00
lvm.c Fixed wrong error message in 'return math.seed(0)' 2019-04-04 16:31:24 -03:00
lvm.h New macros for arithmetic/bitwise operations in 'luaV_execute' 2018-11-05 16:10:42 -02:00
lzio.c Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
lzio.h Removed extra information from RCS keyword strings 2018-08-23 14:26:12 -03:00
makefile 'all' script automatically 'make's everything 2018-12-19 13:15:14 -02:00
onelua.c Keep correct type for immediate operands in comparisons 2019-03-22 13:37:17 -03:00