lua/testes
Roberto Ierusalimschy 4ace93ca65 No more to-be-closed functions
To-be-closed variables must contain objects with '__toclose'
metamethods (or nil). Functions were removed for several reasons:

* Functions interact badly with sandboxes. If a sandbox raises
an error to interrupt a script, a to-be-closed function still
can hijack control and continue running arbitrary sandboxed code.

* Functions interact badly with coroutines. If a coroutine yields
and is never resumed again, its to-be-closed functions will never
run. To-be-closed objects, on the other hand, will still be closed,
provided they have appropriate finalizers.

* If you really need a function, it is easy to create a dummy
object to run that function in its '__toclose' metamethod.

This comit also adds closing of variables in case of panic.
2019-01-04 13:09:47 -02:00
..
libs 'all' script automatically 'make's everything 2018-12-19 13:15:14 -02:00
all.lua No more LUA_ERRGCMM errors 2019-01-01 12:14:56 -02:00
api.lua No more to-be-closed functions 2019-01-04 13:09:47 -02:00
attrib.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
big.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
bitwise.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
bwcoercion.lua Added manual and tests for version 5.4-w2 2018-07-09 12:33:01 -03:00
calls.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
closure.lua Removed internal cache for closures 2018-11-01 13:21:00 -03:00
code.lua Added opcodes for arithmetic with K operands 2018-11-23 12:23:45 -02:00
constructs.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
coroutine.lua No more to-be-closed functions 2019-01-04 13:09:47 -02:00
cstack.lua Changes in the control of C-stack overflow 2018-12-27 14:32:29 -02:00
db.lua A to-be-closed variable must have a closable value (or be nil) 2018-11-29 16:02:44 -02:00
errors.lua Better error messages for invalid operands in numeric 'for' 2018-10-30 15:46:56 -03:00
events.lua Added opcodes for arithmetic with K operands 2018-11-23 12:23:45 -02:00
files.lua To-be-closed variable in 'for' loop separated from the state 2018-11-07 14:42:05 -02:00
gc.lua No more LUA_ERRGCMM errors 2019-01-01 12:14:56 -02:00
gengc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
goto.lua No more to-be-closed functions 2019-01-04 13:09:47 -02:00
heavy.lua Added file 'testes/heavy.lua' 2018-12-14 13:49:02 -02:00
literals.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
locals.lua No more to-be-closed functions 2019-01-04 13:09:47 -02:00
main.lua New functions 'lua_resetthread' and 'coroutine.kill' 2018-12-13 13:07:53 -02:00
math.lua 'math.rand()' uses higher bits to produce float value 2018-12-11 11:34:47 -02:00
nextvar.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
pm.lua Changes in the control of C-stack overflow 2018-12-27 14:32:29 -02:00
sort.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
strings.lua Detail 2018-12-27 14:19:53 -02:00
tpack.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
utf8.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
vararg.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
verybig.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00