aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lbaselib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lbaselib.js b/src/lbaselib.js
index ca95e98..30e77fb 100644
--- a/src/lbaselib.js
+++ b/src/lbaselib.js
@@ -11,7 +11,7 @@ if (typeof process === "undefined") {
buff = buff.concat(s);
};
lua_writeline = function() {
- console.log(lua.to_jsstring(buff));
+ console.log(new TextDecoder("utf-8").decode(Uint8Array.from(buff)));
buff = [];
};
} else {