diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ldebug.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ldebug.js b/src/ldebug.js index d565829..25af97b 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -144,17 +144,17 @@ const lua_getlocal = function(L, ar, n) { }; const lua_setlocal = function(L, ar, n) { - swapextra(L); - let local = findlocal(L, ar.i_ci, n); - let name = local.name; - let pos = local.pos; - if (name) { - L.stack[pos].type = L.stack[L.top - 1].type; - L.stack[pos].value = L.stack[L.top - 1].value; - L.top--; /* pop value */ - } - swapextra(L); - return name; + swapextra(L); + let local = findlocal(L, ar.i_ci, n); + let name = local.name; + let pos = local.pos; + if (name) { + L.stack[pos].type = L.stack[L.top - 1].type; + L.stack[pos].value = L.stack[L.top - 1].value; + L.top--; /* pop value */ + } + swapextra(L); + return name; }; const funcinfo = function(ar, cl) { |