Use generic trace error for OOM during trace stitching.

Thanks to Sergey Kaplun. #1166
This commit is contained in:
Mike Pall 2024-04-18 23:57:53 +02:00
parent 243b7682a5
commit b8b49bf395

View File

@ -152,6 +152,8 @@ static void recff_stitch(jit_State *J)
if (errcode) {
if (errcode == LUA_ERRRUN)
copyTV(L, L->top-1, L->top + (1 + LJ_FR2));
else
setintV(L->top-1, (int32_t)LJ_TRERR_RECERR);
lj_err_throw(L, errcode); /* Propagate errors. */
}
}