From e438f10592077f8b5432f67ef72a8f1bfbbcdc49 Mon Sep 17 00:00:00 2001 From: daurnimator Date: Tue, 12 Dec 2017 15:03:02 +1100 Subject: src/: Use to_luastring more often instead of manually creating arrays --- src/lbaselib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lbaselib.js') diff --git a/src/lbaselib.js b/src/lbaselib.js index 54e73b1..ca95e98 100644 --- a/src/lbaselib.js +++ b/src/lbaselib.js @@ -32,7 +32,7 @@ const luaB_print = function(L) { let s = lua.lua_tolstring(L, -1); if (s === null) return lauxlib.luaL_error(L, lua.to_luastring("'tostring' must return a string to 'print'", true)); - if (i > 1) lua_writestring(["\t".charCodeAt(0)]); + if (i > 1) lua_writestring(lua.to_luastring("\t")); lua_writestring(s); lua.lua_pop(L, 1); } -- cgit v1.2.3-54-g00ecf