diff options
author | Benoit Giannangeli <giann008@gmail.com> | 2017-04-18 11:19:22 +0200 |
---|---|---|
committer | Benoit Giannangeli <giann008@gmail.com> | 2017-04-18 11:21:15 +0200 |
commit | 4f415e5ca594c5b60e6fa6315b69acb41273ee7e (patch) | |
tree | 625990bf30d2f07bb03063acd8e5f3c0f0eb5d5b /src/ldblib.js | |
parent | 5f6d2e34f69d14c57e7f2964aa951c8dab4efc99 (diff) | |
download | fengari-4f415e5ca594c5b60e6fa6315b69acb41273ee7e.tar.gz fengari-4f415e5ca594c5b60e6fa6315b69acb41273ee7e.tar.bz2 fengari-4f415e5ca594c5b60e6fa6315b69acb41273ee7e.zip |
Fixed debug.getinfo bad name lookup
Diffstat (limited to 'src/ldblib.js')
-rw-r--r-- | src/ldblib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldblib.js b/src/ldblib.js index 5c78724..dfc7819 100644 --- a/src/ldblib.js +++ b/src/ldblib.js @@ -153,7 +153,7 @@ const db_getinfo = function(L) { settabsi(L, lua.to_luastring("nparams"), ar.nparams); settabsb(L, lua.to_luastring("isvararg"), ar.isvararg); if (options.indexOf(char['n']) > - 1) { - settabss(L, lua.to_luastring("name"), ar.name ? ar.name.value : null); + settabss(L, lua.to_luastring("name"), ar.name ? ar.name : null); settabss(L, lua.to_luastring("namewhat"), ar.namewhat ? ar.namewhat : null); } if (options.indexOf(char['t']) > - 1) |