summaryrefslogtreecommitdiff
path: root/src/ldblib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-11-12 17:00:01 +1100
committerdaurnimator <quae@daurnimator.com>2017-11-12 20:33:14 +1100
commit71902632f1de46d70ee0280fc464d05013b98b28 (patch)
treeea99f8efaf27030b65197f26d0352e47444fa9c7 /src/ldblib.js
parentd8caec5b1dc33cc3a89a1995b0e1a30ba0301184 (diff)
downloadfengari-71902632f1de46d70ee0280fc464d05013b98b28.tar.gz
fengari-71902632f1de46d70ee0280fc464d05013b98b28.tar.bz2
fengari-71902632f1de46d70ee0280fc464d05013b98b28.zip
lua_writestringerror now takes a vararg and converts arrays
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 441dec0..2faa9f0 100644
--- a/src/ldblib.js
+++ b/src/ldblib.js
@@ -416,7 +416,7 @@ if (!WEB) {
let buffer = lua.to_luastring(input);
if (lauxlib.luaL_loadbuffer(L, buffer, buffer.length, lua.to_luastring("=(debug command)", true))
|| lua.lua_pcall(L, 0, 0, 0)) {
- lauxlib.lua_writestringerror(`${lua.lua_tojsstring(L, -1)}\n`);
+ lauxlib.lua_writestringerror(lua.lua_toluastring(L, -1), "\n");
}
lua.lua_settop(L, 0); /* remove eventual returns */
}