diff options
Diffstat (limited to 'ldo.c')
| -rw-r--r-- | ldo.c | 4 |
1 files changed, 0 insertions, 4 deletions
| @@ -111,10 +111,6 @@ void luaD_seterrorobj (lua_State *L, TStatus errcode, StkId oldtop) { | |||
| 111 | setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling")); | 111 | setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling")); |
| 112 | break; | 112 | break; |
| 113 | } | 113 | } |
| 114 | case LUA_OK: { /* special case only for closing upvalues */ | ||
| 115 | setnilvalue(s2v(oldtop)); /* no error message */ | ||
| 116 | break; | ||
| 117 | } | ||
| 118 | default: { | 114 | default: { |
| 119 | lua_assert(errorstatus(errcode)); /* real error */ | 115 | lua_assert(errorstatus(errcode)); /* real error */ |
| 120 | setobjs2s(L, oldtop, L->top.p - 1); /* error message on current top */ | 116 | setobjs2s(L, oldtop, L->top.p - 1); /* error message on current top */ |
