summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ldebug.js')
-rw-r--r--src/ldebug.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index fc5e378..af9b9a9 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -297,7 +297,7 @@ const kname = function(p, pc, c) {
if (OC.ISK(c)) { /* is 'c' a constant? */
let kvalue = p.k[OC.INDEXK(c)];
if (kvalue.ttisstring()) { /* literal constant? */
- r.name = kvalue.value; /* it is its own name */
+ r.name = kvalue.svalue(); /* it is its own name */
return r;
}
/* else no reasonable name found */
@@ -408,7 +408,7 @@ const getobjname = function(p, lastpc, reg) {
case 'OP_LOADKX': {
let b = op === 'OP_LOADK' ? i.Bx : p.code[pc + 1].Ax;
if (p.k[b].ttisstring()) {
- r.name = p.k[b].value;
+ r.name = p.k[b].tsvalue();
r.funcname = defs.to_luastring("constant", true);
return r;
}