Incorrect Gio.PollableInputStream.read_nonblocking wrapping
gjs does not appear to correctly wrap the read_nonblocking method of Gio.PollableInputStream objects. The current wrapping has that method returning a number (the number of bytes read) and taking a Uint8Array buffer as its first argument, which is an out parameter and so doesn't work.
You can safely use Gio.BufferedInputStream.read_byte on a pollable stream which represents a pipe, but not (with linux) on a socket, as with linux sockets can spuriously indicate themselves as ready. Is there any plan to fix read_nonblocking, since for sockets at least it somewhat undermines the purpose of having a pollable stream?