mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
04d41ba8cc
Derived from 1f3c6f4534
11 lines
393 B
Diff
11 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] */
|
|
}
|