document environment inheritance
This commit is contained in:
parent
d1c61153c9
commit
cfd4c5b454
@ -407,7 +407,7 @@ int lua::LuaState::createEnvironment(int parent) {
|
||||
|
||||
// setmetatable(env, {__index=_G})
|
||||
lua_createtable(L, 0, 1);
|
||||
if (parent == 0 || true) {
|
||||
if (parent == 0) {
|
||||
lua_pushvalue(L, LUA_GLOBALSINDEX);
|
||||
} else {
|
||||
if (pushenv(parent) == 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user