summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-06-09 14:29:54 +1000
committerdaurnimator <quae@daurnimator.com>2017-06-09 14:29:54 +1000
commit8f188fb2f792223f1a0c1730bd4ac99418d81d74 (patch)
tree6c5606d38263e6a36b9d6baf47f2804e6ac7511f /src/ldblib.js
parent74dd47160960b3f0faa13dd1b61b64af69fde02e (diff)
downloadfengari-8f188fb2f792223f1a0c1730bd4ac99418d81d74.tar.gz
fengari-8f188fb2f792223f1a0c1730bd4ac99418d81d74.tar.bz2
fengari-8f188fb2f792223f1a0c1730bd4ac99418d81d74.zip
Avoid .concat where simple to do so
Diffstat (limited to 'src/ldblib.js')
-rw-r--r--src/ldblib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldblib.js b/src/ldblib.js
index ac3a2a4..441dec0 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -123,7 +123,7 @@ const db_getinfo = function(L) {
let options = lauxlib.luaL_optstring(L, arg + 2, lua.to_luastring("flnStu", true));
checkstack(L, L1, 3);
if (lua.lua_isfunction(L, arg + 1)) { /* info about a function? */
- options = ['>'.charCodeAt(0)].concat(options); /* add '>' to 'options' */
+ options = lua.lua_pushfstring(L, lua.to_luastring(">%s"), options); /* add '>' to 'options' */
lua.lua_pushvalue(L, arg + 1); /* move function to 'L1' stack */
lua.lua_xmove(L, L1, 1);
} else { /* stack level */