Skip to content

Commit

Permalink
Fix frame for more types of on-trace error messages.
Browse files Browse the repository at this point in the history
Thanks to Maxim Kokryashkin. #1034
  • Loading branch information
Mike Pall committed Aug 12, 2023
1 parent 165ea18 commit d5bbf9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lj_err.c
Original file line number Diff line number Diff line change
Expand Up @@ -875,6 +875,10 @@ LJ_NORET LJ_NOINLINE static void err_msgv(lua_State *L, ErrMsg em, ...)
const char *msg;
va_list argp;
va_start(argp, em);
if (LJ_HASJIT) {
TValue *base = tvref(G(L)->jit_base);
if (base) L->base = base;
}
if (curr_funcisL(L)) L->top = curr_topL(L);
msg = lj_strfmt_pushvf(L, err2msg(em), argp);
va_end(argp);
Expand Down

0 comments on commit d5bbf9c

Please sign in to comment.