wasm: fix printing from Go code

This commit is contained in:
Ayke van Laethem
2018-11-25 18:07:24 +01:00
parent f0fb1bd41a
commit 05d70d288d
+1 -1
View File
@@ -196,7 +196,7 @@
resource_write: function(fd, ptr, len) {
if (fd == 1) {
for (let i=0; i<len; i++) {
let c = mem.getUint8(ptr+i);
let c = mem().getUint8(ptr+i);
if (c == 13) { // CR
// ignore
} else if (c == 10) { // LF