summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
authorBenoit Giannangeli <giann008@gmail.com>2017-05-20 22:37:55 +0200
committerBenoit Giannangeli <giann008@gmail.com>2017-05-20 22:37:55 +0200
commit68f0cab18add59b2d500b70c1f71abf00ef063e6 (patch)
treeab19fdbc33018e909fa98395c523fc06857c4981 /src/ldblib.js
parent9a117f98785274474e1317e587591f3c385cc91b (diff)
downloadfengari-68f0cab18add59b2d500b70c1f71abf00ef063e6.tar.gz
fengari-68f0cab18add59b2d500b70c1f71abf00ef063e6.tar.bz2
fengari-68f0cab18add59b2d500b70c1f71abf00ef063e6.zip
ldblib.js: fixed bad type for info lastlinedefined and linedefined
Diffstat (limited to 'src/ldblib.js')
-rw-r--r--src/ldblib.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ldblib.js b/src/ldblib.js
index 90f08cd..91dd980 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -139,8 +139,8 @@ const db_getinfo = function(L) {
if (options.indexOf('S'.charCodeAt(0)) > -1) {
settabss(L, lua.to_luastring("source", true), ar.source);
settabss(L, lua.to_luastring("short_src", true), ar.short_src);
- settabss(L, lua.to_luastring("linedefined", true), lua.to_luastring(`${ar.linedefined}`));
- settabss(L, lua.to_luastring("lastlinedefined", true), lua.to_luastring(`${ar.lastlinedefined}`));
+ settabsi(L, lua.to_luastring("linedefined", true), ar.linedefined);
+ settabsi(L, lua.to_luastring("lastlinedefined", true), ar.lastlinedefined);
settabss(L, lua.to_luastring("what", true), ar.what);
}
if (options.indexOf('l'.charCodeAt(0)) > -1)