Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
10 lines
393 B
Diff
10 lines
393 B
Diff
--- a/src/lparser.c
|
|
+++ b/src/lparser.c
|
|
@@ -301,6 +301,7 @@
|
|
expdesc key;
|
|
singlevaraux(fs, ls->envn, var, 1); /* get environment variable */
|
|
lua_assert(var->k == VLOCAL || var->k == VUPVAL);
|
|
+ luaK_exp2anyregup(fs, var); /* but could be a constant */
|
|
codestring(ls, &key, varname); /* key is variable name */
|
|
luaK_indexed(fs, var, &key); /* env[varname] */
|
|
}
|