From 5db508d06b04018d92bcfe706203bdc696a36e1b Mon Sep 17 00:00:00 2001 From: daurnimator Date: Fri, 12 May 2017 13:00:40 +1000 Subject: src/ldebug.js: Shared TValue references are okay on the stack --- src/ldebug.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3-70-g09d2