Disable Lua 5.2 features by default. See -DLUAJIT_ENABLE_LUA52COMPAT.
This commit is contained in:
@@ -1426,7 +1426,10 @@ static void LJ_FASTCALL recff_ipairs_aux(jit_State *J, RecordFFData *rd)
|
||||
|
||||
static void LJ_FASTCALL recff_ipairs(jit_State *J, RecordFFData *rd)
|
||||
{
|
||||
if (!recff_metacall(J, rd, MM_ipairs)) {
|
||||
#ifdef LUAJIT_ENABLE_LUA52COMPAT
|
||||
if (!recff_metacall(J, rd, MM_ipairs))
|
||||
#endif
|
||||
{
|
||||
TRef tab = J->base[0];
|
||||
if (tref_istab(tab)) {
|
||||
J->base[0] = lj_ir_kfunc(J, funcV(&J->fn->c.upvalue[0]));
|
||||
|
||||
Reference in New Issue
Block a user