Don't clear frame for out-of-memory error.

This commit is contained in:
Mike Pall 2012-11-14 21:54:27 +01:00
parent 32fa68d3e8
commit c77a9e4c65

View File

@ -485,7 +485,6 @@ LJ_NOINLINE void lj_err_mem(lua_State *L)
{ {
if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */ if (L->status == LUA_ERRERR+1) /* Don't touch the stack during lua_open. */
lj_vm_unwind_c(L->cframe, LUA_ERRMEM); lj_vm_unwind_c(L->cframe, LUA_ERRMEM);
L->top = L->base;
setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM)); setstrV(L, L->top++, lj_err_str(L, LJ_ERR_ERRMEM));
lj_err_throw(L, LUA_ERRMEM); lj_err_throw(L, LUA_ERRMEM);
} }