We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60c5348 commit 2903f00Copy full SHA for 2903f00
1 file changed
app/ruby_engine/cruby_wasi.rb
@@ -74,8 +74,8 @@ def run(source)
74
textDecoder = `new TextDecoder("utf-8")`
75
%x{
76
wasmFs.fs.writeSync = (fd, buffer, offset, length, position) => {
77
- const text = textDecoder.decode(buffer);
78
if (fd == 1 || fd == 2) {
+ const text = textDecoder.decode(buffer);
79
#{@writer.print_to_output(`text`, "")};
80
}
81
return originalWriteSync(fd, buffer, offset, length, position);
0 commit comments