diff options
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; } |