You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Byte stream support for FileHandle::readableWebStream #45853
Uncaught:
TypeError [ERR_INVALID_ARG_VALUE]: The argument 'stream' must be a byte stream. Received ReadableStream { locked: false, state: 'readable', supportsBYOB: false }
at __node_internal_captureLargerStackTrace (node:internal/errors:484:5)
at new NodeError (node:internal/errors:393:5)
at setupReadableStreamBYOBReader (node:internal/webstreams/readablestream:2127:11)
at new ReadableStreamBYOBReader (node:internal/webstreams/readablestream:882:5)
at ReadableStream.getReader (node:internal/webstreams/readablestream:323:12)
at REPL276:1:96 {
code: 'ERR_INVALID_ARG_VALUE'
}
But a file is all about bytes and intuitively it should succeed.
What is the feature you are proposing to solve the problem?
Byte stream support for FileHandle::readableWebStream
Activity
[-]Byte stream support for readableWebStream[/-][+]Byte stream support for FileHandle::readableWebStream[/+]aduh95 commentedon Dec 18, 2022
/cc @nodejs/fs
fs: implement byob mode for readableWebStream()
fs: implement byob mode for readableWebStream()
fs: implement byob mode for readableWebStream()
fs: implement byob mode for readableWebStream()
fs: implement byob mode for readableWebStream()