mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 18:53:29 +00:00
wasm: fix printing from Go code
This commit is contained in:
@@ -196,7 +196,7 @@
|
|||||||
resource_write: function(fd, ptr, len) {
|
resource_write: function(fd, ptr, len) {
|
||||||
if (fd == 1) {
|
if (fd == 1) {
|
||||||
for (let i=0; i<len; i++) {
|
for (let i=0; i<len; i++) {
|
||||||
let c = mem.getUint8(ptr+i);
|
let c = mem().getUint8(ptr+i);
|
||||||
if (c == 13) { // CR
|
if (c == 13) { // CR
|
||||||
// ignore
|
// ignore
|
||||||
} else if (c == 10) { // LF
|
} else if (c == 10) { // LF
|
||||||
|
|||||||
Reference in New Issue
Block a user