Refactor with LUA_OK.

Contributed by François Perrad.
This commit is contained in:
Mike Pall
2017-04-07 12:12:03 +02:00
parent 22dfa63283
commit 9c685f7003
6 changed files with 24 additions and 23 deletions

View File

@@ -509,7 +509,7 @@ LJ_NOINLINE void LJ_FASTCALL lj_err_throw(lua_State *L, int errcode)
global_State *g = G(L);
lj_trace_abort(g);
setmref(g->jit_base, NULL);
L->status = 0;
L->status = LUA_OK;
#if LJ_UNWIND_EXT
err_raise_ext(errcode);
/*