lua/testes
Roberto Ierusalimschy 41c800b352 Closing methods should not interfere with returning values
A closing method cannot be called in its own stack slot, as there may
be returning values in the stack after that slot, and the call would
corrupt those values. Instead, the closing method must be copied to the
top of the stack to be called.

Moreover, even when a function returns no value, its return istruction
still has to have its position (which will set the stack top) after
the local variables, otherwise a closing method might corrupt another
not-yet-called closing method.
2018-10-25 12:50:20 -03:00
..
libs Added manual and tests for version 5.4-w2 2018-07-09 12:33:01 -03:00
all.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
api.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03: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 Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
code.lua Towards "to closed" local variables 2018-10-08 10:42:07 -03:00
constructs.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
coroutine.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
db.lua Complete implementation of to-be-closed variables 2018-10-22 14:55:51 -03:00
errors.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
events.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
files.lua Added a '__close' metamethod to file handles 2018-10-23 13:57:25 -03:00
gc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
gengc.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
goto.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
literals.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
locals.lua Closing methods should not interfere with returning values 2018-10-25 12:50:20 -03:00
main.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
math.lua Removed extra information from RCS keyword strings in tests 2018-10-22 15:20:07 -03:00
nextvar.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
pm.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
sort.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03:00
strings.lua Added directory to test file names in '$Id:' 2018-07-25 15:31:04 -03: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