summaryrefslogtreecommitdiff
path: root/src/lbaselib.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/lbaselib.js')
-rw-r--r--src/lbaselib.js2
1 files changed, 1 insertions, 1 deletions
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);
}