summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-29 00:48:15 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-29 02:32:41 +1100
commitc93673f0af0ebdc5165cf0acc340f65b6c6fa786 (patch)
tree9da0e536d0cb10e25fc4fe8df4705f87326136af /src/ldblib.js
parentf9375fcb71171d7b18190fa59ec402f7f68e26dd (diff)
downloadfengari-c93673f0af0ebdc5165cf0acc340f65b6c6fa786.tar.gz
fengari-c93673f0af0ebdc5165cf0acc340f65b6c6fa786.tar.bz2
fengari-c93673f0af0ebdc5165cf0acc340f65b6c6fa786.zip
src/: Pass js string to luaL_opt(l)string
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 e687ec1..eb64b03 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -120,7 +120,7 @@ const db_getinfo = function(L) {
let thread = getthread(L);
let arg = thread.arg;
let L1 = thread.thread;
- let options = lauxlib.luaL_optstring(L, arg + 2, lua.to_luastring("flnStu", true));
+ let options = lauxlib.luaL_optstring(L, arg + 2, "flnStu");
checkstack(L, L1, 3);
if (lua.lua_isfunction(L, arg + 1)) { /* info about a function? */
options = lua.lua_pushfstring(L, lua.to_luastring(">%s"), options); /* add '>' to 'options' */