'module' returns the new module, in 5.2

see 95020afb63
This commit is contained in:
Francois Perrad 2017-03-23 18:49:33 +01:00
parent 9ff7cef1e6
commit b52dba5f2e

View File

@ -511,7 +511,11 @@ static int lj_cf_package_module(lua_State *L)
lua_pushvalue(L, -1);
setfenv(L);
dooptions(L, loaded - 1);
#if LJ_52
return 1;
#else
return 0;
#endif
}
static int lj_cf_package_seeall(lua_State *L)