aboutsummaryrefslogtreecommitdiff
path: root/testes/calls.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Optional initialization for global declarationsRoberto Ierusalimschy2025-07-081-2/+2
|
* Variable attributes can prefix name listRoberto Ierusalimschy2025-05-181-1/+1
| | | | | In this format, the attribute applies to all names in the list; e.g. "global<const> print, require, math".
* Collective declaration for globals ('global *')Roberto Ierusalimschy2025-05-131-6/+9
|
* 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'.
* Checks for type 'int' added to binary headerRoberto Ierusalimschy2025-03-101-17/+30
| | | | | The structure 'AbsLineInfo' is hard-dumped into binary chunks, and it comprises two 'int' fields.
* Debug information about extra arguments from __callRoberto Ierusalimschy2024-11-191-0/+11
| | | | | | 'debug.getinfo' can return number of extra arguments added to a call by a chain of __call metavalues. That information is being used to improve error messages about errors in these extra arguments.
* Counter for length of chains of __call metamethodsRoberto Ierusalimschy2024-11-161-3/+20
| | | | | This counter will allow (in a later commit) error messages to correct argument numbers in functions called through __call metamethods.
* A return can have at most 254 valuesRoberto Ierusalimschy2024-08-191-0/+11
|
* Merge branch 'master' into nextversionRoberto Ierusalimschy2023-11-071-14/+0
|\
| * 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.)
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2023-08-231-1/+1
|\|
| * DetailsRoberto Ierusalimschy2023-07-031-1/+1
| |
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2023-06-221-0/+14
|\|
| * 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.
* | Merge branch 'master' into nextversionRoberto Ierusalimschy2022-12-281-19/+25
|\|
| * 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.
* | Towards Lua 5.5Roberto Ierusalimschy2022-12-201-1/+1
| |
* | Dump doesn't need to reuse 'source'Roberto Ierusalimschy2022-12-201-0/+25
|/ | | | All strings are being reused now, including 'source'.
* 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