diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-12-28 14:22:12 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-12-28 14:22:12 +0000 |
| commit | 77ec4d04036f4e781a38cf5f477f238fe95d493d (patch) | |
| tree | fa86a8fb3645ddcc0f8df506a8cb8452a11650c4 | |
| parent | 41a677fc21428ce9ddb8b4af02d6f168c05c923d (diff) | |
Remove unnecessary toString()
| -rw-r--r-- | run-wasm.js | 3 |
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 |
