Ver Fonte

Fix frame for more types of on-trace error messages.

Thanks to Maxim Kokryashkin. #1034
Mike Pall há 2 anos atrás
pai
commit
d5bbf9cdb4
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      src/lj_err.c

+ 4 - 0
src/lj_err.c

@@ -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);