Merge branch 'master' into v2.1

This commit is contained in:
Mike Pall
2023-08-12 22:20:33 +02:00
2 changed files with 10 additions and 3 deletions

View File

@@ -2518,6 +2518,7 @@ static int predict_next(LexState *ls, FuncState *fs, BCPos pc)
cTValue *o;
switch (bc_op(ins)) {
case BC_MOV:
if (bc_d(ins) >= fs->nactvar) return 0;
name = gco2str(gcref(var_get(ls, fs, bc_d(ins)).name));
break;
case BC_UGET: