Skip to content

Commit 619a7b1

Browse files
authored
Remove setfenv & getfenv (#148)
Closed old PR because I messed up and forgot to switch to main before making another branch Closes issue #145
1 parent fa24693 commit 619a7b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cli/main.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ lua_State* setupState(Runtime& runtime)
7979
luaL_register(L, "_G", funcs);
8080
lua_pop(L, 1);
8181

82+
lua_pushnil(L);
83+
lua_setglobal(L, "setfenv");
84+
85+
lua_pushnil(L);
86+
lua_setglobal(L, "getfenv");
87+
8288
luaL_sandbox(L);
8389

8490
return L;

0 commit comments

Comments
 (0)