Fix console flushing on WASM.

This commit is contained in:
Pavel Punegov
2020-07-21 10:43:40 +03:00
committed by Pavel Punegov
parent 6be3206ba8
commit e4eb223ff9
+3
View File
@@ -164,6 +164,9 @@ let konan_dependencies = {
// TODO: There is no writeErr() in d8.
// Approximate it with write() to stdout for now.
runtime.write(utf8decode(toString(str)));
},
fflush: function(file) {
runtime.flush();
}
}
};