| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* adjust file metatables even in compat53.module mode
* apply tweaks only to LuaJIT; file:write() only to compat=none
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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!
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Conflicts:
compat53/base.lua
|
|
global env
|