diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-21 22:36:32 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-21 23:53:51 +1000 |
commit | 1dc341ee119d6a997df9978be5d6eeb91fe11939 (patch) | |
tree | 7e73cae5f546f0e7e88aa53c99797cbccf1bbe35 /src | |
parent | f999c75b3ab32f0011ed99fd8c65465c0d239c12 (diff) | |
download | fengari-1dc341ee119d6a997df9978be5d6eeb91fe11939.tar.gz fengari-1dc341ee119d6a997df9978be5d6eeb91fe11939.tar.bz2 fengari-1dc341ee119d6a997df9978be5d6eeb91fe11939.zip |
src/ldebug.js: Fix indexing TValue instead of value when finding upvalue name
Diffstat (limited to 'src')
-rw-r--r-- | src/ldebug.js | 2 |
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 { |