diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-28 18:40:44 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-28 20:25:17 +1100 |
commit | f77d479fbb1a2a2160dcc559a1870b1f0f460a4d (patch) | |
tree | 00725f5ed6dc864db47a9600fba0862225fe5c5f /src/ldblib.js | |
parent | ece4f00e30783cf186fd29f6c4f623306f2b2fd7 (diff) | |
download | fengari-f77d479fbb1a2a2160dcc559a1870b1f0f460a4d.tar.gz fengari-f77d479fbb1a2a2160dcc559a1870b1f0f460a4d.tar.bz2 fengari-f77d479fbb1a2a2160dcc559a1870b1f0f460a4d.zip |
src/{laux,ldb}lib.js: lua_writestringerror now only takes JS strings
Diffstat (limited to 'src/ldblib.js')
-rw-r--r-- | src/ldblib.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldblib.js b/src/ldblib.js index df7d2ff..a189976 100644 --- a/src/ldblib.js +++ b/src/ldblib.js @@ -415,7 +415,7 @@ if (typeof process !== "undefined") { // Only with Node 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_toluastring(L, -1), "\n"); + lauxlib.lua_writestringerror(lua.lua_tojsstring(L, -1), "\n"); } lua.lua_settop(L, 0); /* remove eventual returns */ } |