diff options
author | daurnimator <quae@daurnimator.com> | 2017-05-12 13:00:40 +1000 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-05-12 13:00:40 +1000 |
commit | 5db508d06b04018d92bcfe706203bdc696a36e1b (patch) | |
tree | 9e2863af4ba83b45b8419c7a8b9242d937ed5dd1 /src/ldebug.js | |
parent | 4a3195e49226715e3fe712497f904b27d5e410ea (diff) | |
download | fengari-5db508d06b04018d92bcfe706203bdc696a36e1b.tar.gz fengari-5db508d06b04018d92bcfe706203bdc696a36e1b.tar.bz2 fengari-5db508d06b04018d92bcfe706203bdc696a36e1b.zip |
src/ldebug.js: Shared TValue references are okay on the stack
Diffstat (limited to 'src/ldebug.js')
-rw-r--r-- | src/ldebug.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ldebug.js b/src/ldebug.js index b26a62f..acd6261 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -136,8 +136,7 @@ const lua_getlocal = function(L, ar, n) { let local = findlocal(L, ar.i_ci, n); if (local) { name = local.name; - let pos = L.stack[local.pos]; - L.stack[L.top++] = new TValue(pos.type, pos.value); + L.stack[L.top++] = L.stack[local.pos]; } else { name = null; } |