summaryrefslogtreecommitdiff
path: root/testes/errors.lua (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Added macro 'luaL_pushfail'Roberto Ierusalimschy2019-08-161-5/+5
| | | | | | | | The macro 'luaL_pushfail' documents all places in the standard libraries that return nil to signal some kind of failure. It is defined as 'lua_pushnil'. The manual also got a notation (@fail) to document those returns. The tests were changed to be agnostic regarding whether 'fail' is 'nil' or 'false'.
* New function 'setCstacklimit'Roberto Ierusalimschy2019-06-181-6/+10
| | | | | Added new functions to dynamically set the C-stack limit ('lua_setCstacklimit' in the C-API, 'debug.setCstacklimit' in Lua).
* Fixed wrong error message in 'return math.seed(0)'Roberto Ierusalimschy2019-04-041-0/+4
| | | | | | Bug introduced in commit 28d829c8: OP_TAILCALL might raise an error without saving 'pc'. (This commit also fixes a detail in 'testes/uf8.lua'.)
* Better error messages for invalid operands in numeric 'for'Roberto Ierusalimschy2018-10-301-0/+10
| | | | | | "Better" and similar to error messages for invalid function arguments. *old message: 'for' limit must be a number *new message: bad 'for' limit (number expected, got table)
* 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'.
* Fixed bug in line info. when using 'not' operatorRoberto Ierusalimschy2018-07-111-2/+19
| | | | | | | | | When creating code for a jump on a 'not' condition, the code generator was removing an instruction (the OP_NOT) without adjusting its corresponding line information. This fix also added tests for this case and extra functionality in the test library to debug line info. structures.
* Added manual and tests for version 5.4-w2Roberto Ierusalimschy2018-07-091-0/+554