Open
Description
The fflush() C API call in stdoutFlush(WrenVM*) should check the return code and throw an exception if it is nonzero.
In particular
$ cat test.wren
import "io" for Stdout
System.write("Hello, world!\n")
Stdout.flush()
$ wren-cli test.wren > /dev/full ; echo "return code = $?"
return code = 0
There is currently no error message to indicate the output error, nor a failure return code.
Metadata
Metadata
Assignees
Labels
No labels
Activity