aboutsummaryrefslogtreecommitdiff
path: root/testes/memerr.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* More effort in avoiding errors in finalizersHEADmasterRoberto I8 days1-0/+19
| | | | | | | | Before calling a finalizer, Lua not only checks stack limits, but actually ensures that a minimum number of slots are already allocated for the call. (If it cannot ensure that, it postpones the finalizer.) That avoids finalizers not running due to memory errors that the programmer cannot control.
* Global initialization checks name conflictRoberto I2025-11-081-2/+2
| | | | | Initialization "global a = 10" raises an error if global 'a' is already defined, that is, it has a non-nil value.
* Vertical bar removed from syntax of vararg tableRoberto I2025-10-301-2/+2
| | | | | | The syntax 'function foo (a, b, ...arg)' is already used by JavaScript for this same semantics, so it seems natural to use the same notation in Lua.
* Two new memory testsRoberto I2025-10-121-9/+33
| | | | For external strings and for vararg tables.
* Removed copyright notice from 'testes/all.lua'Roberto Ierusalimschy2025-03-121-1/+1
| | | | All test files refer to the main copyright notice in 'lua.h'.
* New test file 'memerr.lua'Roberto Ierusalimschy2025-03-121-0/+266
Tests for memory-allocation errors moved from 'api.lua' to this new file, as 'api.lua' was already too big. (Besides, these tests have nothing to do with the API.)