aboutsummaryrefslogtreecommitdiff
path: root/compat53 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* adjust file metatables even in compat53.module mode (#67)Hisham Muhammad2024-08-293-56/+143
| | | | | * adjust file metatables even in compat53.module mode * apply tweaks only to LuaJIT; file:write() only to compat=none
* fix: math.tointeger accepts strings convertible to integers (#66)Hisham Muhammad2024-08-291-0/+1
|
* Support getting io.popen results on file:close() on PUC-Rio Lua 5.1 (#53)Hisham Muhammad2023-09-131-0/+9
|
* Fix loadstring on Lua 5.1Jordi Vilalta Prat2016-05-181-1/+1
|
* Fix the return code of os.execute() on Windows.Jordi Vilalta Prat2016-04-251-1/+4
|
* Make '*' optional for file:lines() and file:read().Philipp Janda2015-08-241-239/+306
|
* Make '*' optional for io.read() and io.lines().Philipp Janda2015-08-231-21/+77
|
* Remove superfluous redefinitions.Philipp Janda2015-08-181-23/+5
| | | | | | | | | By calling the `compat53.module` version of `coroutine.running` from the `compat53` redefinition, the `main_coroutine` value can be reused and the need for the `coroutine.status` and `coroutine.resume` redefinitions vanishes. Thanks @daurnimator!
* assert() can handle non-string errors.Philipp Janda2015-08-181-0/+14
|
* Compress decimal escapes for string.format("%q").Philipp Janda2015-06-021-3/+3
| | | | | | | | Lua 5.2+ escape all control characters using decimal escape sequences. The previous code did the same but always used three decimals (possibly zero-padded) no matter the following character. The new version only uses all three decimals when another decimal character is following.
* Fix warnings emitted by luacheck.v0.2Philipp Janda2015-05-012-13/+5
|
* Choose correct xpcall implementation in compat53 module.Philipp Janda2015-04-261-2/+2
|
* Fix typo.Philipp Janda2015-04-261-1/+1
|
* Add nonyieldable xpcall that takes extra arguments.Philipp Janda2015-04-262-6/+14
| | | | | | | | | Although the full-featured yieldable xpcall has been moved to the compat53 module, the compat53.module module can at least have a version that takes and passes extra arguments. Also remove some unnecessary local aliases left over from previous refactoring.
* Refactor compat53 and compat53.module Lua modules.Philipp Janda2015-04-253-968/+985
| | | | | | | | | | | | | | | The new compat53.module module contains only changes that don't affect other files, and it is supposed to be used in modules like this: local _ENV = require( "compat53.module" ) if setfenv then setfenv( 1, _ENV ) end compat53.module does not change string/file metatables, and it also doesn't support yielding from (x)pcall. The compat53 module copies all functions from compat53.module to the global environment, and additionally sets string/file metatables and implements yieldable (x)pcall.
* Merge branch 'master' into isolatedPhilipp Janda2015-04-201-7/+18
| | | | | Conflicts: compat53/base.lua
* split compat53 Lua module into separate modules that do/don't modify the ↵Philipp Janda2015-04-113-0/+1050
global env