aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--run-wasm.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/run-wasm.js b/run-wasm.js
index 9116f0e5..34fe6663 100644
--- a/run-wasm.js
+++ b/run-wasm.js
@@ -45,8 +45,7 @@ function createWasiForWasm64() {
const bufLen = Number(memoryDataView.getBigUint64(iovPtr + 8, true));
const buf = Buffer.from(memoryBuffer, bufPtr, bufLen);
// TODO: handle fd !== 1
- // TODO: write binary data directly
- process.stdout.write(buf.toString("utf-8"));
+ process.stdout.write(buf);
}
// TODO: update nwritten