Version
26.1.0
Platform
Subsystem
stream
What steps will reproduce the bug?
import { toReadableSync } from 'node:stream/iter';
function* gen() {
yield [
Buffer.from('a'),
Buffer.from('b'),
Buffer.from('c'),
];
}
const readable = toReadableSync(gen(), { highWaterMark: 1 });
readable.on('data', (chunk) => {
console.log(chunk.toString());
});
readable.on('end', () => {
console.log('end');
});
To run it
node --experimental-stream-iter repro.js
How often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
No response
Version
26.1.0
Platform
Subsystem
stream
What steps will reproduce the bug?
To run it
node --experimental-stream-iter repro.jsHow often does it reproduce? Is there a required condition?
Always.
What is the expected behavior? Why is that the expected behavior?
What do you see instead?
Additional information
No response