From 77ec4d04036f4e781a38cf5f477f238fe95d493d Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Thu, 28 Dec 2023 14:22:12 +0000 Subject: Remove unnecessary toString() --- run-wasm.js | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3