aboutsummaryrefslogtreecommitdiff
path: root/testes/calls.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Removed test for "corrupted binary dump"Roberto Ierusalimschy2023-09-081-14/+0
| | | | | Test is too non portable. (For instance, it does not work for different number types.)
* DetailsRoberto Ierusalimschy2023-07-031-1/+1
|
* Bug: Loading a corrupted binary file can segfaultRoberto Ierusalimschy2023-03-171-0/+14
| | | | | The size of the list of upvalue names are stored separated from the size of the list of upvalues, but they share the same array.
* Avoid excessive name pollution in test filesRoberto Ierusalimschy2022-12-281-19/+25
| | | | | Test files are more polite regarding the use of globals when locals would do, and when globals are necessary deleting them after use.
* More checks and documentation for uses of EXTRA_STACKRoberto Ierusalimschy2022-05-261-0/+10
|
* Fixed bug of long strings in binary chunksRoberto Ierusalimschy2020-08-181-1/+15
| | | | | | | When "undumping" a long string, the function 'loadVector' can call the reader function, which can run the garbage collector, which can collect the string being read. So, the string must be anchored during the call to 'loadVector'.
* Fixed detail in 'loadUpvalues'Roberto Ierusalimschy2020-06-301-6/+15
| | | | | | | | | In 'lundump.c', when loading the upvalues of a function, there can be a read error if the chunk is truncated. In that case, the creation of the error message can trigger an emergency collection while the prototype is still anchored. So, the prototype must be GC consistent before loading the upvales, which implies that it the 'name' fields must be filled with NULL before the reading.
* Back to old encoding of versions in binary filesRoberto Ierusalimschy2020-05-061-2/+2
| | | | | | (Undoing part of commit f53eabeed8.) It is better to keep this encoding stable, so that all Lua versions can read at least the version of a binary file.
* Fixed bug in tail calls of __call chainsRoberto Ierusalimschy2019-10-281-1/+24
| | | | | A tail call of a __call chain (a __call metamethod that itself is also not a function) was being perfomed as a regular call.
* '__call' metamethod can be any callable objectRoberto Ierusalimschy2019-06-251-0/+17
| | | | | Removed the restriction that a '__call' metamethod must be an actual function.
* 'print' does not call 'tostring' to format its argumentsRoberto Ierusalimschy2019-04-101-15/+0
|
* Small changes in the header of binary filesRoberto Ierusalimschy2019-03-191-11/+9
| | | | | | | | | - LUAC_VERSION is equal to LUA_VERSION_NUM, and it is stored as an int. - 'sizeof(int)' and 'sizeof(size_t)' removed from the header, as the binary format does not depend on these sizes. (It uses its own serialization for unsigned integer values.)
* Added directory to test file names in '$Id:'Roberto Ierusalimschy2018-07-251-1/+1
| | | | | | | From the point of view of 'git', all names are relative to the root directory of the project. So, file names in '$Id:' also should be relative to that directory: the proper name for test file 'all.lua' is 'testes/all.lua'.
* Added manual and tests for version 5.4-w2Roberto Ierusalimschy2018-07-091-0/+435