summaryrefslogtreecommitdiff
path: root/src/ldebug.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-04-23 15:43:23 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-04-23 15:44:08 +0200
commit1094adc81e7f46720e9ef269f43fc265475cddf7 (patch)
treea4e722ebda6c2ae7c159867e323e651f18d5c1df /src/ldebug.js
parent0133e556602950f71747ef518cdaa861fe422b32 (diff)
downloadfengari-1094adc81e7f46720e9ef269f43fc265475cddf7.tar.gz
fengari-1094adc81e7f46720e9ef269f43fc265475cddf7.tar.bz2
fengari-1094adc81e7f46720e9ef269f43fc265475cddf7.zip
Bad upval name type
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 4090011..34071a1 100644
--- a/src/ldebug.js
+++ b/src/ldebug.js
@@ -533,7 +533,7 @@ const varinfo = function(L, o) {
kind = getobjname(ci.func.p, ci.pcOff, stkid - ci.u.l.base);
}
- return lua.to_luastring(kind ? ` (${lobject.jsstring(kind.funcname)} '${kind.name.jsstring()}')` : ``);
+ return lua.to_luastring(kind ? ` (${lobject.jsstring(kind.funcname)} '${lobject.jsstring(kind.name.value ? kind.name.value : kind.name)}')` : ``);
};
const luaG_typeerror = function(L, o, op) {