We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1fdc12 commit 0a00069Copy full SHA for 0a00069
emmy_core/emmy_debugger.cpp
@@ -570,6 +570,12 @@ int EnvIndexFunction(lua_State* L) {
570
return 1;
571
}
572
lua_pop(L, 1);
573
+ // local value
574
+ lua_getfield(L, locals, name);
575
+ if (lua_isnil(L, -1) == 0) {
576
+ return 1;
577
+ }
578
+ lua_pop(L, 1);
579
// _ENV
580
lua_getfield(L, upvalues, "_ENV");
581
if (lua_istable(L, -1)) {
@@ -580,12 +586,6 @@ int EnvIndexFunction(lua_State* L) {
586
587
582
588
583
- // local value
584
- lua_getfield(L, locals, name);
585
- if (lua_isnil(L, -1) == 0) {
- return 1;
- }
- lua_pop(L, 1);
589
// global
590
lua_getglobal(L, name);
591
if (lua_isnil(L, -1) == 0) {
0 commit comments