summaryrefslogtreecommitdiff
path: root/src/lfunc.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-08 10:55:26 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-08 10:55:26 +0200
commite535c784055065ba8c8b6313b2804562c35dd261 (patch)
tree00fb42afc99e3187cfc192b750e102ebaf0df35e /src/lfunc.js
parentecc153eed6f7d2fd4c39b0e276cdf14abd48d62c (diff)
parent636b1d8a5a566fac0c9c61fed44049c659435a56 (diff)
downloadfengari-e535c784055065ba8c8b6313b2804562c35dd261.tar.gz
fengari-e535c784055065ba8c8b6313b2804562c35dd261.tar.bz2
fengari-e535c784055065ba8c8b6313b2804562c35dd261.zip
Merge remote-tracking branch 'daurnimator/boxed-strings'
Diffstat (limited to 'src/lfunc.js')
-rw-r--r--src/lfunc.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lfunc.js b/src/lfunc.js
index 161724e..40c0905 100644
--- a/src/lfunc.js
+++ b/src/lfunc.js
@@ -114,7 +114,7 @@ const luaF_getlocalname = function(f, local_number, pc) {
if (pc < f.locvars[i].endpc) { /* is variable active? */
local_number--;
if (local_number === 0)
- return f.locvars[i].varname;
+ return f.locvars[i].varname.getstr();
}
}
return null; /* not found */