From 1dc341ee119d6a997df9978be5d6eeb91fe11939 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 21 May 2017 22:36:32 +1000 Subject: src/ldebug.js: Fix indexing TValue instead of value when finding upvalue name --- src/ldebug.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldebug.js') diff --git a/src/ldebug.js b/src/ldebug.js index 47f32f6..ee9c891 100644 --- a/src/ldebug.js +++ b/src/ldebug.js @@ -514,7 +514,7 @@ const isinstack = function(L, ci, o) { ** upvalues.) */ const getupvalname = function(L, ci, o) { - let c = ci.func; + let c = ci.func.value; for (let i = 0; i < c.nupvalues; i++) { if (c.upvals[i].val() === o) { return { -- cgit v1.2.3-54-g00ecf