|
@@ -701,6 +701,8 @@ static TValue *trace_exit_cp(lua_State *L, lua_CFunction dummy, void *ud)
|
|
{
|
|
{
|
|
ExitDataCP *exd = (ExitDataCP *)ud;
|
|
ExitDataCP *exd = (ExitDataCP *)ud;
|
|
cframe_errfunc(L->cframe) = -1; /* Inherit error function. */
|
|
cframe_errfunc(L->cframe) = -1; /* Inherit error function. */
|
|
|
|
+ /* Always catch error here. */
|
|
|
|
+ cframe_nres(L->cframe) = -2*LUAI_MAXSTACK*(int)sizeof(TValue);
|
|
exd->pc = lj_snap_restore(exd->J, exd->exptr);
|
|
exd->pc = lj_snap_restore(exd->J, exd->exptr);
|
|
UNUSED(dummy);
|
|
UNUSED(dummy);
|
|
return NULL;
|
|
return NULL;
|