summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ldebug.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldebug.js b/src/ldebug.js
index 4be14dd..b427e76 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -411,7 +411,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].tsvalue();
+ r.name = p.k[b].svalue();
r.funcname = defs.to_luastring("constant", true);
return r;
}