aboutsummaryrefslogtreecommitdiff
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
parent0133e556602950f71747ef518cdaa861fe422b32 (diff)
downloadfengari-1094adc81e7f46720e9ef269f43fc265475cddf7.tar.gz
fengari-1094adc81e7f46720e9ef269f43fc265475cddf7.tar.bz2
fengari-1094adc81e7f46720e9ef269f43fc265475cddf7.zip
Bad upval name type
-rw-r--r--src/ldebug.js2
m---------tests/lua-tests0
2 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) {
diff --git a/tests/lua-tests b/tests/lua-tests
-Subproject 9e0d0bfb5de8cb0534a13c19f23377db62b53d5
+Subproject 09921eadf1e107b70f698db6058e4ef36480279