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 7b2a89f commit 66b8a97Copy full SHA for 66b8a97
src/lua/src/lparser.c
@@ -300,6 +300,7 @@ static void singlevar (LexState *ls, expdesc *var) {
300
expdesc key;
301
singlevaraux(fs, ls->envn, var, 1); /* get environment variable */
302
lua_assert(var->k != VVOID); /* this one must exist */
303
+ luaK_exp2anyregup(fs, var); /* but could be a constant */
304
codestring(ls, &key, varname); /* key is variable name */
305
luaK_indexed(fs, var, &key); /* env[varname] */
306
}
0 commit comments