summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-12-28 18:40:44 +1100
committerdaurnimator <quae@daurnimator.com>2017-12-28 20:25:17 +1100
commitf77d479fbb1a2a2160dcc559a1870b1f0f460a4d (patch)
tree00725f5ed6dc864db47a9600fba0862225fe5c5f /src/lauxlib.js
parentece4f00e30783cf186fd29f6c4f623306f2b2fd7 (diff)
downloadfengari-f77d479fbb1a2a2160dcc559a1870b1f0f460a4d.tar.gz
fengari-f77d479fbb1a2a2160dcc559a1870b1f0f460a4d.tar.bz2
fengari-f77d479fbb1a2a2160dcc559a1870b1f0f460a4d.zip
src/{laux,ldb}lib.js: lua_writestringerror now only takes JS strings
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r--src/lauxlib.js4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js
index 51c5749..aafdfff 100644
--- a/src/lauxlib.js
+++ b/src/lauxlib.js
@@ -869,12 +869,8 @@ const lua_writestringerror = function() {
for (let i=0; i<arguments.length; i++) {
let a = arguments[i];
if (typeof process === "undefined") {
- if (typeof a !== "string")
- a = lua.to_jsstring(a);
console.error(a);
} else {
- if (typeof a !== "string")
- a = Uint8Array.from(a);
process.stderr.write(a);
}
}