stderr property
Returns a stream that reads from stderr
.
To use this, you must enable WASI when instantiating the module, and set
captureStderr
to true
.
Implementation
Stream<List<int>> get stderr {
if (_wasiEnv == nullptr) {
throw WasmError("Can't capture stderr without WASI enabled.");
}
return _stderr ??= runtime.getWasiStderrStream(_wasiEnv);
}