Skip to content

qjs fails to output content via stdout to pipe or non-console receiver #635

@harig

Description

@harig

After 72d4587 content emitted by qjs (via console.log/print etc. ) to stdout fails to reach a receiver through a pipe or other process reading from its stdout on Windows 10.
For example, if we run the following inside cmd.exe
qjs -e "print(1);"
will print 1
qjs -e "print(1);" | cat
will not output anything.
Similar issue can be seen with qjs launched as a process and some other program reads its output.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions