From f77d479fbb1a2a2160dcc559a1870b1f0f460a4d Mon Sep 17 00:00:00 2001 From: daurnimator Date: Thu, 28 Dec 2017 18:40:44 +1100 Subject: src/{laux,ldb}lib.js: lua_writestringerror now only takes JS strings --- src/ldblib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ldblib.js') 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 */ } -- cgit v1.2.3-54-g00ecf