Repository navigation
How to add proper binary I/O (stdin, stdout, stderr) to boa? #5534
Replies: 1 comment 3 replies
|
There are several independent issues in this sample, before the WASI transport itself:
let read_js_fn = FunctionObjectBuilder::new(context.realm(), read_fn)
.build();Import it from
Also stop swallowing every transmit exception while debugging: it can turn a binding error into an apparently silent I/O failure. Send diagnostics to stderr, leaving stdout exclusively for framed messages. A useful first test is a synchronous byte echo containing NUL and non-UTF-8 bytes, then add JSON framing and promise handling separately. I haven't compiled your complete example; please share the pinned Boa version and first compiler/runtime error so the remaining typed-array API calls can be checked precisely. |
Uh oh!
There was an error while loading. Please reload this page.
This is what I currently have that fails
All reactions