mirror of
https://github.com/lua/lua
synced 2025-04-01 18:42:52 +03:00
small bug: debug.getfenv should check whether it has an argument
This commit is contained in:
parent
323f33d014
commit
ee5d03b42a
3
ldblib.c
3
ldblib.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
** $Id: ldblib.c,v 1.109 2008/01/21 13:37:08 roberto Exp roberto $
|
** $Id: ldblib.c,v 1.110 2009/02/17 13:21:28 roberto Exp roberto $
|
||||||
** Interface from Lua to its debug API
|
** Interface from Lua to its debug API
|
||||||
** See Copyright Notice in lua.h
|
** See Copyright Notice in lua.h
|
||||||
*/
|
*/
|
||||||
@ -45,6 +45,7 @@ static int db_setmetatable (lua_State *L) {
|
|||||||
|
|
||||||
|
|
||||||
static int db_getfenv (lua_State *L) {
|
static int db_getfenv (lua_State *L) {
|
||||||
|
luaL_checkany(L, 1);
|
||||||
lua_getfenv(L, 1);
|
lua_getfenv(L, 1);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user