summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 45d126f..510221f 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -518,7 +518,7 @@ const isinstack = function(L, ci, o) {
const getupvalname = function(L, ci, o) {
let c = ci.func.value;
for (let i = 0; i < c.nupvalues; i++) {
- if (c.upvals[i].val() === o) {
+ if (c.upvals[i].v === o) {
return {
name: upvalname(c.p, i),
funcname: defs.to_luastring('upvalue', true)