diff options
author | daurnimator <quae@daurnimator.com> | 2017-12-12 15:03:02 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-12-13 15:03:54 +1100 |
commit | e438f10592077f8b5432f67ef72a8f1bfbbcdc49 (patch) | |
tree | 7755e33334b592e78bc76a20a47fb5e504fe7c74 /src/lbaselib.js | |
parent | c5b39b9d292c1a2178aa41c6a95367a81614eb61 (diff) | |
download | fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.tar.gz fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.tar.bz2 fengari-e438f10592077f8b5432f67ef72a8f1bfbbcdc49.zip |
src/: Use to_luastring more often instead of manually creating arrays
Diffstat (limited to 'src/lbaselib.js')
-rw-r--r-- | src/lbaselib.js | 2 |
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); } |