aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-21 22:36:32 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-21 23:53:51 +1000
commit1dc341ee119d6a997df9978be5d6eeb91fe11939 (patch)
tree7e73cae5f546f0e7e88aa53c99797cbccf1bbe35
parentf999c75b3ab32f0011ed99fd8c65465c0d239c12 (diff)
downloadfengari-1dc341ee119d6a997df9978be5d6eeb91fe11939.tar.gz
fengari-1dc341ee119d6a997df9978be5d6eeb91fe11939.tar.bz2
fengari-1dc341ee119d6a997df9978be5d6eeb91fe11939.zip
src/ldebug.js: Fix indexing TValue instead of value when finding upvalue name
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 47f32f6..ee9c891 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -514,7 +514,7 @@ const isinstack = function(L, ci, o) {
** upvalues.)
*/
const getupvalname = function(L, ci, o) {
- let c = ci.func;
+ let c = ci.func.value;
for (let i = 0; i < c.nupvalues; i++) {
if (c.upvals[i].val() === o) {
return {