Call error function on rethrow after trace exit.

This commit is contained in:
Mike Pall
2020-08-09 22:50:31 +02:00
parent 12ab596997
commit e296f56b82
9 changed files with 11 additions and 15 deletions

View File

@@ -2163,9 +2163,8 @@ static void build_subroutines(BuildCtx *ctx)
|. addu RA, RA, BASE
|
|3: // Rethrow error from the right C frame.
| load_got lj_err_throw
| negu CARG2, CRET1
| call_intern lj_err_throw // (lua_State *L, int errcode)
| load_got lj_err_run
| call_intern lj_err_run // (lua_State *L)
|. move CARG1, L
|.endif
|