fix registry access in generator scripts

This commit is contained in:
MihailRis 2026-10-12 00:15:28 +03:00
parent d753c74858
commit ab129367ad

View file

@ -196,6 +196,10 @@ void lua::init_state(State* L, StateType stateType) {
if (stateType == StateType::GENERATOR) {
pushnil(L);
setglobal(L, "ffi");
static const char* removed_debug[] {
"getregistry", "getupvalue", "setupvalue", "getinfo", nullptr};
remove_lib_funcs(L, "debug", removed_debug);
}
}