aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-05-04 11:53:39 +1000
committerdaurnimator <quae@daurnimator.com>2017-05-04 11:53:39 +1000
commitadb15f3073139981fa38ed61587513a92065cf03 (patch)
treede5caea09d74721689f7e9fff6f5d2d7615f6b3a /src
parentc811e3e58e9152e2c86df148628aec47f56d0cf9 (diff)
downloadfengari-adb15f3073139981fa38ed61587513a92065cf03.tar.gz
fengari-adb15f3073139981fa38ed61587513a92065cf03.tar.bz2
fengari-adb15f3073139981fa38ed61587513a92065cf03.zip
src/ldblib.js: Add missing braces
Diffstat (limited to 'src')
-rw-r--r--src/ldblib.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ldblib.js b/src/ldblib.js
index 8ed95d7..4563eb0 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -145,10 +145,11 @@ const db_getinfo = function(L) {
}
if (options.indexOf('l'.charCodeAt(0)) > -1)
settabsi(L, lua.to_luastring("currentline", true), ar.currentline);
- if (options.indexOf('u'.charCodeAt(0)) > -1)
+ if (options.indexOf('u'.charCodeAt(0)) > -1) {
settabsi(L, lua.to_luastring("nups", true), ar.nups);
settabsi(L, lua.to_luastring("nparams", true), ar.nparams);
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);