summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
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 91dd980..3f18a27 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -151,8 +151,8 @@ const db_getinfo = function(L) {
settabsb(L, lua.to_luastring("isvararg", true), ar.isvararg);
}
if (options.indexOf('n'.charCodeAt(0)) > - 1) {
- settabss(L, lua.to_luastring("name", true), ar.name ? ar.name : null);
- settabss(L, lua.to_luastring("namewhat", true), ar.namewhat ? ar.namewhat : null);
+ settabss(L, lua.to_luastring("name", true), ar.name);
+ settabss(L, lua.to_luastring("namewhat", true), ar.namewhat);
}
if (options.indexOf('t'.charCodeAt(0)) > - 1)
settabsb(L, lua.to_luastring("istailcall", true), ar.istailcall);