diff options
author | daurnimator <quae@daurnimator.com> | 2017-06-16 17:47:38 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-06-16 18:06:49 +1000 |
commit | 94d5eb3873d2a5155ceeecbd2ff8c73853374c64 (patch) | |
tree | d3035af6da975ca34ff9e85a09d7f770e176ed1a /src | |
parent | 14b09a44efbd321ab521761553ed296c654cb874 (diff) | |
download | fengari-94d5eb3873d2a5155ceeecbd2ff8c73853374c64.tar.gz fengari-94d5eb3873d2a5155ceeecbd2ff8c73853374c64.tar.bz2 fengari-94d5eb3873d2a5155ceeecbd2ff8c73853374c64.zip |
src/ldebug.js: Use function offset as limit when finding local variable 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 532fd9c..dbd546d 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -116,7 +116,7 @@ const findlocal = function(L, ci, n) { base = ci.funcOff + 1; if (name === null) { /* no 'standard' name? */ - let limit = ci === L.ci ? L.top : ci.next.func; + let limit = ci === L.ci ? L.top : ci.next.funcOff; if (limit - base >= n && n > 0) /* is 'n' inside 'ci' stack? */ name = defs.to_luastring("(*temporary)", true); /* generic name for any valid slot */ else |