/* Prepare and call a closing method. If status is CLOSEKTOP, the call to the closing method will be pushed at the top of the stack. Otherwise, values can be pushed right after the 'level' of the upvalue being closed, as everything after that won't be used again.  */
static void prepcallclosemth(lua_State *L, StkId level, int status, int yy)
/* Prepare and call a closing method. If status is CLOSEKTOP, the call to the closing method will be pushed at the top of the stack. Otherwise, values can be pushed right after the 'level' of the upvalue being closed, as everything after that won't be used again.  */
static void prepcallclosemth(lua_State *L, StkId level, int status, int yy)
{
    errobj = s2v(level + 1);
    luaD_seterrorobj(L, status, level + 1);
  }
  callclosemethod(L, uv, errobj, yy);
}